scippneutron.conversion.tof.time_at_sample_from_tof#
- scippneutron.conversion.tof.time_at_sample_from_tof(*, pulse_time, tof, L2, wavelength)[source]#
Compute the absolute time when the neutron passed through the sample.
The result is
\[t_{sample} = t_{pulse} + t_{of} - L_2 / v\]where
\[v = \frac{h}{m_n \lambda}\]where \(v\) is the estimated velocity of the neutron over its path from sample to detector and \(\lambda\) is the wavelength of the neutron.
- Parameters:
pulse_time (
Variable
|DataArray
|Dataset
|DataGroup
[Any
]) – absolute time when time of flight is 0tof (
Variable
|DataArray
|Dataset
|DataGroup
[Any
]) – the time of fligth of the neutronL2 (
Variable
|DataArray
|Dataset
|DataGroup
[Any
]) – path length from sample to detectorwavelength (
Variable
|DataArray
|Dataset
|DataGroup
[Any
]) – wavelength of the neutron (at the detector). Assuming this did not change during the neutrons travel from sample to detector this can be used to compute the velocity the neutron had between the sample and the detector.
- Returns:
Variable
|DataArray
|Dataset
|DataGroup
[Any
] – \(t_{sample}\)