\(\renewcommand\AA{\unicode{x212B}}\)
SCDPanelErrors¶
Description¶
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.
Workspace¶
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.
Output¶
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:
Calculating the best fitting UB for the given indexing and parameter values
Find U
The theoretical UB is then U*B0 where B0 is formed from the supplied lattice parameters
The theoretical qx,qy,and qz can be obtained by multiplying the hkl for the peak by this matrix(/2π)
Attributes (non-fitting parameters)¶
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. |
PeakWorkspaceName - This peak must be indexed by a UB matrix whose lattice parametersare CLOSE to the above lattice parameters
BankNames - Names separated by “/” or a “!” if the next bank is in a different group. Bank names from the same group belong together(“Requirement” for use with the Fit algorithm)
Properties (fitting parameters)¶
Name |
Default |
Description |
---|---|---|
XShift |
0.0 |
Shift factor in X |
YShift |
0.0 |
Shift factor in Y |
ZShift |
0.0 |
Shift factor in Z |
XRotate |
0.0 |
Rotate angle in X |
YRotate |
0.0 |
Rotate angle in Y |
ZRotate |
0.0 |
Rotate angle in Z |
ScaleWidth |
1.0 |
Scale width of detector |
ScaleHeight |
1.0 |
Scale height of detector |
T0Shift |
0.0 |
Shift for TOF |
l0- the initial Flight path in units from Peak.getL1
t0-Time offset in the same units returned with Peak.getTOF)
SampleX-Sample x offset in the same units returned with Peak.getDetPos().norm()
SampleY-Sample y offset in the same units returned with Peak.getDetPos().norm()
SampleZ-Sample z offset in the same units returned with Peak.getDetPos().norm()
f*_detWidthScale-panel Width for Group* in the same units returned with Peak.getDetPos().norm()
f*_detHeightScale-panel Height for Group* in the same units returned with Peak.getDetPos().norm()
f*_Xoffset-Panel Center x offsets for Group* banks in the same units returned with Peak.getDetPos().norm()
f*_Yoffset-Panel Center y offsets for Group* banks in the same units returned with Peak.getDetPos().norm()
f*_Zoffset-Panel Center z offsets for Group* banks in the same units returned with Peak.getDetPos().norm()
f*_Xrot-Rotations(degrees) for Group* banks around “Center” in x axis direction
f*_Yrot-Rotations(degrees) for Group* banks around “Center” in y axis direction
f*_Zrot-Rotations(degrees) for Group* banks around “Center” in z axis direction
SampleX -sample X offset in meters(Really Goniometer X offset)
SampleY- sample Y offset in meters
SampleZ- sample Z offset in meters
The order of rotations correspond to the order used in all of Mantid.
Categories: FitFunctions | General
Source¶
C++ header: SCDPanelErrors.h
C++ source: SCDPanelErrors.cpp