scippneutron.conversion.tof.time_at_sample_from_tof#

scippneutron.conversion.tof.time_at_sample_from_tof(*, pulse_time, tof, L2, wavelength)#

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:
Returns:

Union[Variable, DataArray, Dataset, DataGroup]\(t_{sample}\)