ess.reduce.time_of_flight.lut#

Utilities for computing time-of-flight lookup tables from neutron simulations.

Module Attributes

NumberOfSimulatedNeutrons

Number of neutrons simulated in the simulation that is used to create the lookup table.

LtotalRange

Range (min, max) of the total length of the flight path from the source to the detector.

DistanceResolution

Step size of the distance axis in the lookup table.

TimeResolution

Step size of the event_time_offset axis in the lookup table.

LookupTableRelativeErrorThreshold

Threshold for the relative standard deviation (coefficient of variation) of the projected time-of-flight above which values are masked.

PulsePeriod

Period of the source pulses, i.e., time between consecutive pulse starts.

PulseStride

Stride of used pulses.

SourcePosition

Position of the neutron source in the coordinate system of the choppers.

SimulationSeed

Seed for the random number generator used in the simulation.

SimulationFacility

Facility where the experiment is performed, e.g., 'ess'.

Functions

TofLookupTableWorkflow()

Create a workflow for computing a time-of-flight lookup table from a simulation of neutrons propagating through a chopper cascade.

make_tof_lookup_table(simulation, ...)

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

simulate_chopper_cascade_using_tof(choppers, ...)

Simulate a pulse of neutrons propagating through a chopper cascade using the tof package (https://tof.readthedocs.io).

Classes

SimulationResults(time_of_arrival, speed, ...)

Results of a time-of-flight simulation used to create a lookup table.