tof.SourceReading#
- class tof.SourceReading(data, facility, neutrons, frequency, pulses, distance)[source]#
Read-only container for the parameters of a source.
- __init__(data, facility, neutrons, frequency, pulses, distance)#
Methods
__init__(data, facility, neutrons, ...)plot([bins])Plot both the toa and wavelength data side by side.
plot_on_time_distance_diagram(ax, pulse)Attributes
birth_timeBirth time of the neutrons at the source.
etoEvent time offset of the neutrons at the component (= toa modulo pulse period).
kindspeedSpeed of the neutrons at the component.
toaTime of arrival of the neutrons at the component.
wavelengthWavelength of the neutrons at the component.
datafacilityneutronsfrequencypulsesdistance