CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TAPDPulse.h
Go to the documentation of this file.
1 #ifndef TAPDPulse_H
2 #define TAPDPulse_H
3 
4 #include "TObject.h"
5 #include<vector>
6 
7 class TAPDPulse: public TObject
8 {
9 
10  private:
11 
12  int _nsamples;
23 
24 
25  double *adc_;
27  bool isPedCalc_;
28  double adcMax_;
29  int iadcMax_;
30  double pedestal_;
31 
32  void init(int, int, int, int, int, int, int, int, double, double, double );
33 
34  public:
35 
36 
37  // Default Constructor, mainly for Root
38  TAPDPulse();
39 
40  // Constructor
41  TAPDPulse(int, int, int, int, int, int, int, int, double, double, double);
42 
43  // Destructor: Does nothing
44  virtual ~TAPDPulse();
45 
46  bool setPulse(double*);
47  double getMax();
48  int getMaxSample();
49  double getDelta(int, int);
50  double getRatio(int, int);
51  bool isTimingOK();
52  bool isTimingQualOK();
53  bool areFitSamplesOK();
54  bool isPulseOK();
55  bool arePulseRatioOK();
56  bool isPulseRatioMaxOK();
57  bool isPulseRatioMinOK();
58  double getPedestal();
59  double* getAdcWithoutPedestal();
60  void setPresamples(int);
61  //ClassDef(TAPDPulse,1)
62 };
63 
64 #endif
bool isMaxFound_
Definition: TAPDPulse.h:26
bool isPulseRatioMaxOK()
Definition: TAPDPulse.cc:168
int iadcMax_
Definition: TAPDPulse.h:29
double getRatio(int, int)
Definition: TAPDPulse.cc:104
bool areFitSamplesOK()
Definition: TAPDPulse.cc:132
double _ratiomaxcutlow
Definition: TAPDPulse.h:20
double getDelta(int, int)
Definition: TAPDPulse.cc:96
int _firstsample
Definition: TAPDPulse.h:14
bool setPulse(double *)
Definition: TAPDPulse.cc:65
double getPedestal()
Definition: TAPDPulse.cc:198
double * adc_
Definition: TAPDPulse.h:25
int _nsamples
Definition: TAPDPulse.h:12
virtual ~TAPDPulse()
Definition: TAPDPulse.cc:30
double _ratiomincuthigh
Definition: TAPDPulse.h:22
double * getAdcWithoutPedestal()
Definition: TAPDPulse.cc:210
bool isPedCalc_
Definition: TAPDPulse.h:27
int _presample
Definition: TAPDPulse.h:13
int _lastsample
Definition: TAPDPulse.h:15
int _timingcuthigh
Definition: TAPDPulse.h:17
int getMaxSample()
Definition: TAPDPulse.cc:91
double getMax()
Definition: TAPDPulse.cc:74
bool isTimingQualOK()
Definition: TAPDPulse.cc:124
void init(int, int, int, int, int, int, int, int, double, double, double)
Definition: TAPDPulse.cc:34
int _timingqualhigh
Definition: TAPDPulse.h:19
bool isPulseRatioMinOK()
Definition: TAPDPulse.cc:183
bool isTimingOK()
Definition: TAPDPulse.cc:117
int _timingcutlow
Definition: TAPDPulse.h:16
void setPresamples(int)
Definition: TAPDPulse.cc:223
double adcMax_
Definition: TAPDPulse.h:28
bool isPulseOK()
Definition: TAPDPulse.cc:140
double _ratiomincutlow
Definition: TAPDPulse.h:21
bool arePulseRatioOK()
Definition: TAPDPulse.cc:150
int _timingquallow
Definition: TAPDPulse.h:18
double pedestal_
Definition: TAPDPulse.h:30