ess.spectroscopy.indirect.kf.sample_analyzer_vector#
- ess.spectroscopy.indirect.kf.sample_analyzer_vector(sample_position, analyzer_position, analyzer_transform, detector_position)[source]#
Determine the sample to analyzer-reflection-point vector per detector element
Note
The shapes of the analyzer position and orientation should be self-consistent and will likely be 1:1. There is expected to be multiple detector element positions per analyzer which can be represented as an additional dimension compared to the analyzer shapes.
- Parameters:
sample_position (
Variable
) – The (probably scalar) sample position, typically vector (0, 0, 0).analyzer_position (
Variable
) – The nominal center of the central analyzer blade surface.analyzer_transform (
Variable
) – The transform that places and rotates the analyzer in lab space. Only the rotation is extracted to identify the crystal y-axis.detector_position (
Variable
) – The position of the detector element.
- Returns:
Variable
– The vector from the sample position to the interaction point on the analyzer for each detector element.