tof.ComponentReading#

class tof.ComponentReading[source]#

Data reading for a component placed in the beam path. The reading will have a record of the arrival times and wavelengths of the neutrons that passed through it.

__init__()#

Methods

__init__()

plot([bins])

Plot both the toa and wavelength data side by side.

Attributes

birth_time

speed

toa

wavelength

plot(bins=300)[source]#

Plot both the toa and wavelength data side by side.

Parameters:

bins (int, default: 300) – Number of bins to use for histogramming the neutrons.

Return type:

Plot