ess.reduce.time_of_flight.eto_to_tof.detector_ltotal_from_straight_line_approximation#
- ess.reduce.time_of_flight.eto_to_tof.detector_ltotal_from_straight_line_approximation(detector, source_position, sample_position, gravity)[source]#
Compute Ltotal for the detector pixels.
This is a naive straight-line approximation to Ltotal based on basic component positions.
- Parameters:
detector (
EmptyDetector[TypeVar(RunType)]) – Data array with detector positions.source_position (
Position[NXsource,TypeVar(RunType)]) – Position of the neutron source.sample_position (
Position[NXsample,TypeVar(RunType)]) – Position of the sample.gravity (
nexus.types.GravityVector(scipp.Variable)) – Gravity vector.
- Return type:
DetectorLtotal[TypeVar(RunType)]