Module tof

Module tof 

Source
Expand description

Time-of-flight to energy conversion for imaging data.

VENUS beamline data is recorded in time-of-flight bins. This module converts TOF bin edges/centers to neutron energy using E = ½·m_n·(L/t)².

The core conversion functions live in nereids_core::constants; this module provides the imaging-specific wrappers for working with TOF bin arrays and spectra aligned to energy grids.

Structs§

BeamlineParams
VENUS beamline parameters for TOF-to-energy conversion.

Functions§

linspace_tof_edges
Generate linearly-spaced TOF bin edges.
tof_edges_to_energy
Convert an array of TOF bin edges (μs) to energy bin edges (eV).
tof_edges_to_energy_centers
Convert TOF bin edges to energy bin centers.