AlignDetectors

From MantidProject

Jump to: navigation, search

Contents

Summary

Performs a unit change from TOF to dSpacing, correcting the X values to account for small errors in the detector positions.

Properties

Order Name Direction Type Default Description
1 InputWorkspace Input Workspace Mandatory The name of the input workspace.
2 OutputWorkspace Output Workspace Mandatory The name to use for the output workspace.
3 CalibrationFile Input string Mandatory The CalFile containing the position correction factors

Description

The detector offset files used by this algorithm are in the form created by the ARIEL software. The offsets are a correction to the dSpacing values and are applied during the conversion from time-of-flight to dSpacing as follows:

 d = \frac{h}{m_N} \frac{t.o.f.}{L_{tot} sin \theta} (1+ \rm{offset})

Note: the workspace that this algorithms outputs is a ragged workspace.

Restrictions on the input workspace

The input workspace must contain histogram data where the X unit is time-of-flight and the Y data is raw counts. The instrument associated with the workspace must be fully defined because detector, source & sample position are needed.

Source Code

Header AlignDetectors.h

Source AlignDetectors.cpp

Personal tools
Create a book