This fit function is used for calibrating RectangularDetectors by adjusting L0, time offset, panel width, panel height, panel center, panel orientation, and allow for the sample being offset from the instrument center.
A Workspace2D with 1 spectra. The xvalues of the spectra are for each peak, the peak index repeated 3 times. The y values are all zero and the errors are all 1.0
This spectra may have to be copied 3 times because of requirements from the fitting system.
The argument out from function1D ,for each peak, gives the error in qx, qy, and qz. The theoretical values for the qx, qy and qz are found as follows:
Name | Type | Default | Description |
---|---|---|---|
a | The lattice parameter a in Angstroms | ||
b | The lattice parameter b in Angstroms | ||
c | The lattice parameter c in Angstroms | ||
alpha | The lattice parameter alpha in degrees | ||
beta | The lattice parameter beta in degrees | ||
gamma | The lattice parameter gamma in degrees | ||
PeakWorkspaceName | The name of the PeaksWorkspace | ||
NGroups | The number of grouping of banks to be considered | ||
BankNames | List of banknames to group. | ||
startX | -1 or starting position in the workspace to start calculating the outputs | ||
endX | -1 or 1+ ending position in the workspace to start calculating the outputs | ||
RotateCenters | Boolean | If false Rotations are only about the center of the banks. | |
SampleOffsets | Boolean | A sample being off from the center of the goniometer can result in larger errors. |
Name | Default | Description |
---|---|---|
f0_detWidthScale | 1.0 | panel Width |
f0_detHeightScale | 1.0 | panel Height |
f0_Xoffset | 0.0 | Panel Center x offset |
f0_Yoffset | 0.0 | Panel Center y offset |
f0_Zoffset | 0.0 | Panel Center z offset |
f0_Xrot | 0.0 | Rotation(degrees) Panel Center in x axis direction |
f0_Yrot | 0.0 | Rotation(degrees) Panel Center in y axis direction |
f0_Zrot | 0.0 | Rotation(degrees) Panel Center in z axis direction |
l0 | 0.0 | Initial Flight Path |
t0 | 0.0 | Time offset |
SampleX | 0.0 | Sample x offset |
SampleY | 0.0 | Sample y offset |
SampleZ | 0.0 | Sample z offset |
The order of rotations correspond to the order used in all of Mantid.
Categories: FitFunctions | Calibrate