CMS 3D CMS Logo

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,0)
62 };
63 
64 #endif
bool isMaxFound_
Definition: TAPDPulse.h:26
bool isPulseRatioMaxOK()
Definition: TAPDPulse.cc:167
int iadcMax_
Definition: TAPDPulse.h:29
double getRatio(int, int)
Definition: TAPDPulse.cc:103
bool areFitSamplesOK()
Definition: TAPDPulse.cc:131
double _ratiomaxcutlow
Definition: TAPDPulse.h:20
double getDelta(int, int)
Definition: TAPDPulse.cc:95
int _firstsample
Definition: TAPDPulse.h:14
bool setPulse(double *)
Definition: TAPDPulse.cc:64
double getPedestal()
Definition: TAPDPulse.cc:197
double * adc_
Definition: TAPDPulse.h:25
int _nsamples
Definition: TAPDPulse.h:12
virtual ~TAPDPulse()
Definition: TAPDPulse.cc:29
double _ratiomincuthigh
Definition: TAPDPulse.h:22
double * getAdcWithoutPedestal()
Definition: TAPDPulse.cc:209
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:90
double getMax()
Definition: TAPDPulse.cc:73
bool isTimingQualOK()
Definition: TAPDPulse.cc:123
void init(int, int, int, int, int, int, int, int, double, double, double)
Definition: TAPDPulse.cc:33
int _timingqualhigh
Definition: TAPDPulse.h:19
bool isPulseRatioMinOK()
Definition: TAPDPulse.cc:182
bool isTimingOK()
Definition: TAPDPulse.cc:116
int _timingcutlow
Definition: TAPDPulse.h:16
void setPresamples(int)
Definition: TAPDPulse.cc:222
double adcMax_
Definition: TAPDPulse.h:28
bool isPulseOK()
Definition: TAPDPulse.cc:139
double _ratiomincutlow
Definition: TAPDPulse.h:21
bool arePulseRatioOK()
Definition: TAPDPulse.cc:149
int _timingquallow
Definition: TAPDPulse.h:18
double pedestal_
Definition: TAPDPulse.h:30