EstimateDivergence v1¶
Summary¶
Estimate the divergence of each detector pixel
See Also¶
Properties¶
Name |
Direction |
Type |
Default |
Description |
---|---|---|---|---|
InputWorkspace |
Input |
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 |
Mandatory |
Workspace containing the divergence of each detector/spectrum |
Description¶
This algorithm estimates the divergence of a diffraction instrument using equation 6.9 of Windsor
Where
The results of this calculation can be supplied as an optional workspace to EstimateResolutionDiffraction.
Usage¶
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
References¶
Windsor, C. G. Pulsed Neutron Scattering. London: Taylor & Francis, 1981. Print. ISBN-10: 0470271310, ISBN-13: 978-0470271315
See also
Algorithm EstimateResolutionDiffraction v1
Categories: AlgorithmIndex | Diffraction\Utility
Source¶
C++ header: EstimateDivergence.h
C++ source: EstimateDivergence.cpp