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 {
9 
10  private:
11 
12  int _nsamples;
14 
15 
16  double *adc_;
18  bool isPedCalc_;
19  double adcMax_;
20  int iadcMax_;
21  double pedestal_;
22 
23  void init(int, int );
24 
25  public:
26 
27 
28  // Default Constructor, mainly for Root
29  TPNPulse();
30 
31  // Constructor
32  TPNPulse(int, int);
33 
34  // Destructor: Does nothing
35  virtual ~TPNPulse();
36 
37  bool setPulse(double*);
38  double getMax();
39  int getMaxSample();
40  double getPedestal();
41  double* getAdcWithoutPedestal();
42  void setPresamples(int);
43  ClassDef(TPNPulse,0)
44 };
45 
46 #endif
double * adc_
Definition: TPNPulse.h:16
bool isPedCalc_
Definition: TPNPulse.h:18
double getPedestal()
Definition: TPNPulse.cc:87
int _presample
Definition: TPNPulse.h:13
void init(int, int)
Definition: TPNPulse.cc:34
double getMax()
Definition: TPNPulse.cc:64
virtual ~TPNPulse()
Definition: TPNPulse.cc:30
double * getAdcWithoutPedestal()
Definition: TPNPulse.cc:99
bool isMaxFound_
Definition: TPNPulse.h:17
bool setPulse(double *)
Definition: TPNPulse.cc:55
int _nsamples
Definition: TPNPulse.h:12
TPNPulse()
Definition: TPNPulse.cc:18
void setPresamples(int)
Definition: TPNPulse.cc:112
double pedestal_
Definition: TPNPulse.h:21
double adcMax_
Definition: TPNPulse.h:19
int getMaxSample()
Definition: TPNPulse.cc:81
int iadcMax_
Definition: TPNPulse.h:20