\(\renewcommand\AA{\unicode{x212B}}\)
Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | Workspace to have divergence calculated from |
alpha | Input | number | 0 | Vertical divergence parameter |
beta0 | Input | number | 0 | Horizontal divergence parameter |
beta1 | Input | number | 0 | Other horizontal divergence parameter |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | Workspace containing the divergence of each detector/spectrum |
This algorithm estimates the divergence of a diffraction instrument using equation 6.9 of Windsor
Where \(\Delta\theta_{div}\) is the divergence, \(\Delta(2\theta)\) is the angular uncertainty due to the detector size, \(\alpha_0\) is the uncertainty in the incident collimation in the scattering plane, and the \(\beta\) terms are the angular uncertainties out of the scattering plane for the incident and scattered beam.
The results of this calculation can be supplied as an optional workspace to EstimateResolutionDiffraction.
Example - EstimateDivergence
LoadEmptyInstrument(Filename='POWGEN_Definition_2017-05-01.xml', OutputWorkspace='PG3')
ws = EstimateDivergence(InputWorkspace='PG3')
# Print the result
print("The output workspace has {} spectra".format(ws.getNumberHistograms()))
Output:
The output workspace has 43121 spectra
See also
Algorithm EstimateResolutionDiffraction v1
Categories: AlgorithmIndex | Diffraction\Utility
C++ header: EstimateDivergence.h (last modified: 2020-03-20)
C++ source: EstimateDivergence.cpp (last modified: 2020-04-07)