CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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,1)
44 };
45 
46 #endif
double * adc_
Definition: TPNPulse.h:16
bool isPedCalc_
Definition: TPNPulse.h:18
double getPedestal()
Definition: TPNPulse.cc:88
int _presample
Definition: TPNPulse.h:13
void init(int, int)
Definition: TPNPulse.cc:35
double getMax()
Definition: TPNPulse.cc:65
virtual ~TPNPulse()
Definition: TPNPulse.cc:31
double * getAdcWithoutPedestal()
Definition: TPNPulse.cc:100
bool isMaxFound_
Definition: TPNPulse.h:17
bool setPulse(double *)
Definition: TPNPulse.cc:56
int _nsamples
Definition: TPNPulse.h:12
TPNPulse()
Definition: TPNPulse.cc:19
void setPresamples(int)
Definition: TPNPulse.cc:113
double pedestal_
Definition: TPNPulse.h:21
double adcMax_
Definition: TPNPulse.h:19
int getMaxSample()
Definition: TPNPulse.cc:82
int iadcMax_
Definition: TPNPulse.h:20