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_time

Birth time of the neutrons at the source.

eto

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

kind

speed

Speed of the neutrons at the component.

toa

Time of arrival of the neutrons at the component.

tof

Time of flight of the neutrons from source to the component.

wavelength

Wavelength of the neutrons at the component.

data

facility

neutrons

frequency

pulses

distance