ess.reduce.time_of_flight.eto_to_tof#

Time-of-flight workflow for unwrapping the time of arrival of the neutron at the detector. This workflow is used to convert raw detector data with event_time_zero and event_time_offset coordinates to data with a time-of-flight coordinate.

Functions

compute_tof_lookup_table(simulation, ...)

Compute a lookup table for time-of-flight as a function of distance and time-of-arrival.

default_parameters()

Default parameters of the time-of-flight workflow.

detector_ltotal_from_straight_line_approximation(...)

Compute Ltotal for the detector pixels.

detector_time_of_flight_data(detector_data, ...)

Convert the time-of-arrival data to time-of-flight data using a lookup table.

monitor_ltotal_from_straight_line_approximation(...)

Compute Ltotal for the monitor.

monitor_time_of_flight_data(monitor_data, ...)

Convert the time-of-arrival data to time-of-flight data using a lookup table.

providers()

Providers of the time-of-flight workflow.

resample_detector_time_of_flight_data(da)

Resample the detector time-of-flight data to ensure that the bin edges are sorted.

resample_monitor_time_of_flight_data(da)

Resample the monitor time-of-flight data to ensure that the bin edges are sorted.

Classes

TofInterpolator(lookup, distance_unit, time_unit)