scippneutron.conversion.tof.energy_from_tof#

scippneutron.conversion.tof.energy_from_tof(*, tof, Ltotal)#

Compute the neutron energy from time-of-flight.

The result is

\[E = \frac{m_n L_\mathsf{total}^2}{2 t^2}\]

Where \(m_n\) is the neutron mass.

Parameters:
  • tof (Variable) – Time-of-flight \(t\).

  • Ltotal (Variable) – Total beam length.

Returns:

Variable – Neutron energy \(E\). Has unit meV.