Ticket #186 (closed: fixed)
Use of Offset values associated with unit conversion
Reported by: | Nick Draper | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | major | Milestone: | Iteration 11 |
Component: | Keywords: | Units | |
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
Some instruments have specified offsets for use in unit conversions (or perhaps just after). Unfortunately the information used to derive the offset is not enough to correct the geometry as the offset is specified as a compound correction to LsinTheta. This could be applied as a post conversion fix within the conversion algorithms or perhaps more usefully a separate algorithm.
For now you should assume the file structure is that of the .cal files available in the TEST\Data directory. DiffractionFocussing reads the same files and may be of some use.
Once this is in place DiffractionFocussing should be altered to make use of this new functionality.
Change History
comment:4 Changed 12 years ago by Russell Taylor
(In [1331]) Added AlignDetectors algorithm to correct for detector misalignments. Does so in the course of a TOF to dSpacing unit conversion. Also corrected calculation of 2theta - previously assumed that beam was coming down z axis, which is not necessarily the case. Involved addition of a the method V3D::angle to get the angle between two vectors and the method Instrument::detectorTwoTheta to get the angle between the beam and a given detector. Re #186.