pub fn calculate_pedestal(
voltages: &Vec<f32>,
threshold: f32,
ped_begin_bin: usize,
ped_range_bin: usize,
) -> (f32, f32)
Expand description
The pedestal is the baseline of the waveform
§Arguments
- voltages : calibrated waveform
- threshold : consider everything below threshold the pedestal (typical 10mV)
- ped_begin_bin : beginning of the window for pedestal calculation (bin)
- ped_range_bin : length of the window for pedestal calculation (in bins)
§Return
pedestal value with error (quadratic error)