Module algorithms

Source
Expand description

Algorithms used to exract information from the TOF waveforms.

Functionsยง

calculate_pedestal
The pedestal is the baseline of the waveform
cfd_simple
Find the onset time of a peak with a constant fraction discrimination method.
find_peaks
Find peaks in a given time window (in ns) by comparing the waveform voltages with the given threshold.
find_peaks_zscore
Z-scores peak finding algorithm
fit_sine_simple
Sine fit without using external libraries
get_max_value_idx
Return the index of the maximum value in an array of floats.
integrate
Integrate a waveform
interpolate_time
Linear interpolation of the time within a single bin of a TOF waveform
time2bin
Given a time in ns, find the bin most closely corresponding to that time