Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:28:13

0001 // Gets the magnitude simply from ADC_max - ADC_ped
0002 
0003 #pragma once
0004 
0005 #include "waveform_fit_base.h"
0006 
0007 #include <vector>
0008 
0009 class max_sample_fit : public waveform_fit_base {
0010 public:
0011     max_sample_fit();
0012     ~max_sample_fit();
0013 
0014     void fit()                              override;
0015     void fit_with_average_ped(double ped)   override;
0016     int get_pedestal()                      override;
0017 
0018 private:
0019     double max_sample_value;  // The maximum sample value in the waveform
0020     double pedestal_value;    // The pedestal value, which is the average of the first 10 samples
0021 };