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

Birth time of the neutrons at the source.

eto

Event time offset of the neutrons at the component (= toa modulo pulse period).

speed

Speed of the neutrons at the component.

toa

Time of arrival of the neutrons at the component.

wavelength

Wavelength of the neutrons at the component.

property birth_time: ReadingField#

Birth time of the neutrons at the source.

property eto: ReadingField#

Event time offset of the neutrons at the component (= toa modulo pulse period).

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

property speed: ReadingField#

Speed of the neutrons at the component.

property toa: ReadingField#

Time of arrival of the neutrons at the component.

property wavelength: ReadingField#

Wavelength of the neutrons at the component.