These classes are specific to the operation of triple-axis spectrometers.
All classes described here are re-exported in the nicos.tas module, so for example both nicos.tas.Monochromator and nicos.tas.mono.Monochromator are valid entries for the class name in a setup file.
Bases: HasLimits, HasPrecision, Moveable
General monochromator theta/two-theta device.
It supports setting the unit parameter to different values and will calculate the theta/two-theta angles correctly for each supported value:
Also supported is a focussing monochromator setup. For this, set the focush and focusv attached devices to the axes that control the focussing, and set hfocuspars and vfocuspars to a list of coefficients (starting with the constant coefficient) for a polynomial that calculates the focush and focusv values from a given wavelength.
Attached devices
Monochromator rocking angle. Type: HasPrecision.
Monochromator scattering angle. Type: HasPrecision.
Parameters
d-value of the reflection used. Unit: A.
focussing mode. Default value: 'manual'.
horizontal focus polynomial coefficients. Default value: [0.0].
order of reflection to use. Default value: 1.
true if theta position is relative to two-theta. Default value: False.
default scattering sense when not used in triple-axis mode. Default value: 1.
Default value: False.
vertical focus polynomial coefficients. Default value: [0.0].
interval between warnings about theta/two-theta mismatch. Default value: 5. Unit: s.
Parameters inherited from the base classes: abslimits, description, fixed, fmtstr, loglevel, lowlevel, maxage, pollinterval, precision, target, unit, userlimits
Bases: Instrument, Moveable
An instrument class that can move in (q,w) space.
When setting up a triple-axis configuration, use this as your instrument device (or derive an individual subclass).
Attached devices
Analysator device. Type: Monochromator.
Monochromator device. Type: Monochromator.
Parameters
Whether the sample th/tt axes are coupled. Default value: True.
Collimation settings. Default value: ''.
Energy transfer unit. Default value: 'THz'.
Whether the range of psi is 0-360 deg (otherwise -180-180 deg is assumed). Default value: True.
Constant of the operation mode. Default value: 0.
Operation mode: one of CKI, CKF, CPHI, CPSI, DIFF. Default value: 'CKI'.
Scattering sense. Default value: (1, -1, 1).
Parameters inherited from the base classes: countloopdelay, description, fixed, fmtstr, instrument, loglevel, lowlevel, maxage, pollinterval, responsible, target, unit
TAS-specific Sample subclass with cell information.
This class can do all the necessary computations to calculate instrument angles from a given (hkl) value. This is used by the TAS instrument class to enable movement in (q,w) space.
When setting up a triple-axis configuration, use this as your sample device.
Parameters inherited from the base classes: angles, description, lattice, loglevel, lowlevel, orient1, orient2, psi0, samplename