CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 private:
9  int _nsamples;
20 
21  double* adc_;
23  bool isPedCalc_;
24  double adcMax_;
25  int iadcMax_;
26  double pedestal_;
27 
28  void init(int, int, int, int, int, int, int, int, double, double, double);
29 
30 public:
31  // Default Constructor, mainly for Root
32  TAPDPulse();
33 
34  // Constructor
35  TAPDPulse(int, int, int, int, int, int, int, int, double, double, double);
36 
37  // Destructor: Does nothing
38  ~TAPDPulse() override;
39 
40  bool setPulse(double*);
41  double getMax();
42  int getMaxSample();
43  double getDelta(int, int);
44  double getRatio(int, int);
45  bool isTimingOK();
46  bool isTimingQualOK();
47  bool areFitSamplesOK();
48  bool isPulseOK();
49  bool arePulseRatioOK();
50  bool isPulseRatioMaxOK();
51  bool isPulseRatioMinOK();
52  double getPedestal();
53  double* getAdcWithoutPedestal();
54  void setPresamples(int);
55  ClassDefOverride(TAPDPulse, 0)
56 };
57 
58 #endif
bool isMaxFound_
Definition: TAPDPulse.h:22
bool isPulseRatioMaxOK()
Definition: TAPDPulse.cc:191
int iadcMax_
Definition: TAPDPulse.h:25
double getRatio(int, int)
Definition: TAPDPulse.cc:123
bool areFitSamplesOK()
Definition: TAPDPulse.cc:154
double _ratiomaxcutlow
Definition: TAPDPulse.h:17
double getDelta(int, int)
Definition: TAPDPulse.cc:116
int _firstsample
Definition: TAPDPulse.h:11
bool setPulse(double *)
Definition: TAPDPulse.cc:86
double getPedestal()
Definition: TAPDPulse.cc:224
double * adc_
Definition: TAPDPulse.h:21
int _nsamples
Definition: TAPDPulse.h:9
double _ratiomincuthigh
Definition: TAPDPulse.h:19
double * getAdcWithoutPedestal()
Definition: TAPDPulse.cc:237
bool isPedCalc_
Definition: TAPDPulse.h:23
int _presample
Definition: TAPDPulse.h:10
int _lastsample
Definition: TAPDPulse.h:12
~TAPDPulse() override
Definition: TAPDPulse.cc:44
int _timingcuthigh
Definition: TAPDPulse.h:14
int getMaxSample()
Definition: TAPDPulse.cc:111
double getMax()
Definition: TAPDPulse.cc:94
bool isTimingQualOK()
Definition: TAPDPulse.cc:145
void init(int, int, int, int, int, int, int, int, double, double, double)
Definition: TAPDPulse.cc:46
int _timingqualhigh
Definition: TAPDPulse.h:16
bool isPulseRatioMinOK()
Definition: TAPDPulse.cc:207
bool isTimingOK()
Definition: TAPDPulse.cc:137
int _timingcutlow
Definition: TAPDPulse.h:13
void setPresamples(int)
Definition: TAPDPulse.cc:251
double adcMax_
Definition: TAPDPulse.h:24
bool isPulseOK()
Definition: TAPDPulse.cc:162
double _ratiomincutlow
Definition: TAPDPulse.h:18
bool arePulseRatioOK()
Definition: TAPDPulse.cc:171
int _timingquallow
Definition: TAPDPulse.h:15
double pedestal_
Definition: TAPDPulse.h:26