Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:41:19

0001 #ifndef TPNPulse_H
0002 #define TPNPulse_H
0003 
0004 #include "TObject.h"
0005 #include <vector>
0006 
0007 class TPNPulse : public TObject {
0008 private:
0009   int _nsamples;
0010   int _presample;
0011 
0012   double* adc_;
0013   bool isMaxFound_;
0014   bool isPedCalc_;
0015   double adcMax_;
0016   int iadcMax_;
0017   double pedestal_;
0018 
0019   void init(int, int);
0020 
0021 public:
0022   // Default Constructor, mainly for Root
0023   TPNPulse();
0024 
0025   // Constructor
0026   TPNPulse(int, int);
0027 
0028   // Destructor: Does nothing
0029   ~TPNPulse() override;
0030 
0031   bool setPulse(double*);
0032   double getMax();
0033   int getMaxSample();
0034   double getPedestal();
0035   double* getAdcWithoutPedestal();
0036   void setPresamples(int);
0037   ClassDefOverride(TPNPulse, 0)
0038 };
0039 
0040 #endif