pyhiperta.calibration

Implements the “calibration” of R0 data: going from 2 gain ADC counts to number of photo-electrons

Functions

calibrate(waveform, gains, pedestals)

Apply pedestal and gain calibration to waveforms.

select_channel(waveform_high, waveform_low, ...)

Select values to use in waveforms high/low gain and corresponding gains and pedestals based on threshold.