scippneutron.conversion.beamline#
Functions for computing coordinates related to beamline geometry.
Most functions in this module assume a straight beamline geometry. That is, the beams are not curved by, e.g., a beam guide. All quantities are defined as in the image below:
The ‘source position’ defines the point where \(t=0\) (or vice versa). Neutrons are scattered at the ‘sample position’ and detected at ‘position’ at \(t=\mathsf{tof}\).
In addition, total_straight_beam_length_no_scatter
can be used if the beam
does not scatter off of a sample.
This is useful for instance for monitors.
In this case, Ltotal
is the distance from source to detector.
Functions
|
Compute the length of the incident beam. |
|
Compute the length of the scattered beam. |
|
Compute the length of the beam from source to sample. |
|
Compute the length of the beam from sample to detector. |
|
Compute the combined length of the incident and scattered beams. |
Compute the length of the beam from source to given position. |
|
|
Compute the scattering angle between scattered and transmitted beams. |