\(\renewcommand\AA{\unicode{x212B}}\)
Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | A workspace to reduce. |
OutputWorkspace | Output | Workspace | Mandatory | The reduced S(Q, DeltaE) workspace. |
Cleanup | Input | string | Cleanup ON | What to do with intermediate workspaces. Allowed values: [‘Cleanup ON’, ‘Cleanup OFF’] |
SubalgorithmLogging | Input | string | Logging OFF | Enable or disable subalgorithms to print in the logs. Allowed values: [‘Logging OFF’, ‘Logging ON’] |
IntegratedVanadiumWorkspace | Input | MatrixWorkspace | An integrated vanadium workspace. | |
AbsoluteUnitsNormalisation | Input | string | Absolute Units OFF | Enable or disable normalisation to absolute units. Allowed values: [‘Absolute Units OFF’, ‘Absolute Units ON’] |
DiagnosticsWorkspace | Input | MatrixWorkspace | Detector diagnostics workspace for masking. | |
GroupingAngleStep | Input | number | Optional | A scattering angle step to which to group detectors, in degrees. |
EnergyRebinningParams | Input | dbl list | Manual energy rebinning parameters. | |
EnergyRebinning | Input | string | Energy rebinning when mixing manual and automatic binning parameters. | |
QBinningParams | Input | dbl list | Manual q rebinning parameters. | |
Transposing | Input | string | Transposing ON | Enable or disable OutputWorkspace transposing. Allowed values: [‘Transposing ON’, ‘Transposing OFF’] |
OutputSofThetaEnergyWorkspace | Output | Workspace | Output workspace for reduced S(theta, DeltaE). |
This is the main data reduction algorithm in ILL’s time-of-flight reduction suite. It performs the last steps of the reduction workflow, namely vanadium normalisation and transformation to \(S(q,\omega)\) space (optionally \(S(2\theta,\omega)\)). The algorithm’s workflow diagram is shown below:
InputWorkspace should contain data treated by DirectILLCollectData and, optionally, by DirectILLApplySelfShielding.
The mandatory IntegratedVanadiumWorkspace should have gone through DirectILLIntegrateVanadium. This workspace is used for the vanadium normalisation.
DiagnosticsWorkspace should be a product of DirectILLDiagnostics. It is used to mask the spectra of InputWorkspace.
The algorithm will transform the time-of-flight and spectrum numbers of InputWorkspace into \(S(q,\omega)\) at its output. For \(2\theta\) to \(q\) transformation, SofQWNormalisedPolygon is used. By default, the output is transposed by Transpose. This behavior can be turned off by the Transpose property.
The optional \(S(2\theta,\omega)\) output can be enabled by the OutputSofThetaEnergyWorkspace. This is the processed data right after detector grouping and before the transformation to \(S(q,\omega)\).
Normalisation to absolute units can be enabled by setting AbsoluteUnitsNormalisation to 'Absolute Units ON'
. In this case the data is multiplied by a factor
\(f = \frac{N_V \sigma_V}{N_S}\)
after normalisation to vanadium giving units of barn to the data. In the above, \(N_V\) stands for the vanadium number density, \(\sigma_V\) for vanadium total scattering cross section and \(N_S\) sample number density.
The material properties should be set for InputWorkspace and IntegratedVanadiumWorkspace by SetSample before running this algorithm .
After conversion from time-of-flight to energy transfer, the binning may differ from spectrum to spectrum if the sample to detector distances are unequal. The SofQWNormalisedPolygon algorithm cannot work with such ragged workspaces and thus rebinning in energy transfer is necessary. By default, the algorithm uses automatic rebinning: - For negative energy transfers, copy binning from the spectrum which covers the largest negative energy transfer range. - For positive energy transfers, use the median bin width over all spectra at zero energy transfer.
The automatic rebinning can be overriden by the EnergyRebinningParams or EnergyRebinning properties. EnergyRebinningParams is directly passed to Rebin as the Params property. On the other hand, EnergyRebinning allows for mixture of automatic and user specified rebinning. Its syntax is a comma separated list of letters a for automatic binning and numbers for ranges and user-specified bin widths. Here are some examples:
QBinningParams are passed to SofQWNormalisedPolygon and have the same format as EnergyRebinningParamas. If the property is not specified, \(q\) is binned to a value that depends on the wavelength and the \(2\theta\) separation of the grouped detectors. By default, the detectors are grouped to 0.01 degree wide bins in \(2\theta\) or to the value of the natural-angle-step
instrument parameter. The default behavior can be overriden by the GroupingAngleStep property.
After conversion to momentum transfer, the vertical axis of the data is in units of momentum transfer while the horizontal axis is in energy transfer. By default, the data is transposed such that momentum transfer is on the horizontal axis and energy transfer in the vertical. This can be turned off by setting Transposing to 'Transposing OFF'
.
For usage of this algorithm, check the examples here.
Categories: AlgorithmIndex | ILL\Direct | Inelastic\Reduction | Workflow\Inelastic
Python: DirectILLReduction.py (last modified: 2020-03-27)