Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /epic-lfhcal-tbana/NewStructure/waveform_fitting/max_sample_fit.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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     int get_pedestal() override;
0016 
0017 private:
0018     double max_sample_value;  // The maximum sample value in the waveform
0019     double pedestal_value;    // The pedestal value, which is the average of the first 10 samples
0020 };