Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | Name of the workspace to have detector resolution calculated. |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | Name of the output workspace containing delta(d)/d of each detector/spectrum. |
DeltaTOF | Input | number | Mandatory | DeltaT as the resolution of TOF with unit microsecond (10^-6m). |
Wavelength | Input | number | Optional | Wavelength setting in Angstroms. This overrides what is in the dataset. |
Resolution of a detector in d-spacing is defined as , which is constant for an individual detector.
Starting from the Bragg equation for T.O.F. diffractometer,
as
and thus
where,
Example - estimate PG3 partial detectors’ resolution:
# Load a Nexus file
Load(Filename="PG3_2538_2k.nxs", OutputWorkspace="PG3_2538")
# Run the algorithm to estimate detector's resolution
EstimateResolutionDiffraction(InputWorkspace="PG3_2538", DeltaTOF=40.0, OutputWorkspace="PG3_Resolution")
resws = mtd["PG3_Resolution"]
print "Size of workspace 'PG3_Resolution' = ", resws.getNumberHistograms()
print "Estimated resolution of detector of spectrum 0 = ", resws.readY(0)[0]
print "Estimated resolution of detector of spectrum 100 = ", resws.readY(100)[0]
print "Estimated resolution of detector of spectrum 999 = ", resws.readY(999)[0]
Output:
Size of workspace 'PG3_Resolution' = 1000
Estimated resolution of detector of spectrum 0 = 0.00323913250277
Estimated resolution of detector of spectrum 100 = 0.00323608373204
Estimated resolution of detector of spectrum 999 = 0.00354849279137
See also
Algorithms CalibrateRectangularDetectors v1 and GetDetOffsetsMultiPeaks v1
Categories: Algorithms | Diffraction\Utility