CMS 3D CMS Logo

TPNPulse.h
Go to the documentation of this file.
1 #ifndef TPNPulse_H
2 #define TPNPulse_H
3 
4 #include "TObject.h"
5 #include <vector>
6 
7 class TPNPulse : public TObject {
8 private:
9  int _nsamples;
11 
12  double* adc_;
14  bool isPedCalc_;
15  double adcMax_;
16  int iadcMax_;
17  double pedestal_;
18 
19  void init(int, int);
20 
21 public:
22  // Default Constructor, mainly for Root
23  TPNPulse();
24 
25  // Constructor
26  TPNPulse(int, int);
27 
28  // Destructor: Does nothing
29  ~TPNPulse() override;
30 
31  bool setPulse(double*);
32  double getMax();
33  int getMaxSample();
34  double getPedestal();
35  double* getAdcWithoutPedestal();
36  void setPresamples(int);
37  ClassDefOverride(TPNPulse, 0)
38 };
39 
40 #endif
double * adc_
Definition: TPNPulse.h:12
bool isPedCalc_
Definition: TPNPulse.h:14
double getPedestal()
Definition: TPNPulse.cc:76
int _presample
Definition: TPNPulse.h:10
void init(int, int)
Definition: TPNPulse.cc:25
double getMax()
Definition: TPNPulse.cc:53
double * getAdcWithoutPedestal()
Definition: TPNPulse.cc:89
bool isMaxFound_
Definition: TPNPulse.h:13
bool setPulse(double *)
Definition: TPNPulse.cc:45
~TPNPulse() override
Definition: TPNPulse.cc:23
int _nsamples
Definition: TPNPulse.h:9
TPNPulse()
Definition: TPNPulse.cc:17
void setPresamples(int)
Definition: TPNPulse.cc:103
double pedestal_
Definition: TPNPulse.h:17
double adcMax_
Definition: TPNPulse.h:15
int getMaxSample()
Definition: TPNPulse.cc:70
int iadcMax_
Definition: TPNPulse.h:16