Ticket #10569 (closed: duplicate)
New user (mask) file SANS commands for TILT
Reported by: | Anders Markvardsen | Owned by: | Peter Parker |
---|---|---|---|
Priority: | major | Milestone: | Backlog |
Component: | SANS | Keywords: | |
Cc: | richard.heenan@… | Blocked By: | |
Blocking: | Tester: | Anders Markvardsen |
Description
Richard writes:
Mantidinstall/scripts/SANS/ needs the three .py files attached to replace the usual files of the same name. (Someone ought to check my python coding! Search for RKH in the files.)
In order to “tilt”, or rather rotate about it’s centre, for any detector
DET/CORR FRONT YTILT 0.2145 DET/CORR FRONT XTILT 0.0915
The tilt value is in degrees. [I did notice the online doc has a slash not a space, DET/CORR/FRONT – likely equivalent ??]
In Mantid, as seen from SANS2d sample position, positive Ytilt moves the top of detector away (rotates about X axis), positive Xtilt rotates the detector clockwise (rotates about Z axis).
These tilts are done before the usual translation, and rotation (in the case of the the SANS2d front detector) that move a detector from its default position in the instrument description file to where it is for a particular experiment.
The attached files need to replace the ones in the current download, and the documentation updated.
At some point we also need to include my modified tube calibration .py files into the standard download.
Attachments
Change History
Changed 6 years ago by Anders Markvardsen
- Attachment ISISCommandInterface_RKH.py added
Richard update emailed 20th Nov 2014
comment:1 Changed 6 years ago by Anders Markvardsen
- Cc richard.heenan@… added
On 20th Nov 2014 Richard writes:
Have now added a completely new function SetCorrectionFile( ) in the attached, at ~ line 862, which can be called after MaskFile( ) to override the direct beam file name. Please put this latest version into the general distribution.
This simplifies process of adjusting the direct beam file, so that only a single mask file is now required, should have done this ages ago. For an example of usage see (in the usual z:\mantidscripts) : SANSuseful20_varifocal_4m_gdw_BKG_singleMask.py
Also tested the previous new features in SetDetectorOffsets( ), worked fine.
[ SANS team – you will only need to install the attached ISISCommandInterface_RKH.py if you intend to use this new feature – remove the _RKH and delete the previously compiled version of ISISCommandInterface.pyc before launching Mantid.
Also fyi, the new MoveFront3.py, will help to optimise the position of the front detector, by repeating large numbers of data reductions and fitting Bragg peaks. Present version uses two user files, one for left side, and one for right side of the front detector ( ~1/3 of the detector each). ]
comment:2 Changed 6 years ago by Peter Parker
- Status changed from new to verify
- Resolution set to duplicate
Merging in Richard's work is being done as part of #11360, which just needs to be tested at this stage.