1 | #ifndef MARS_MHCalibrationChargePINDiode
|
---|
2 | #define MARS_MHCalibrationChargePINDiode
|
---|
3 |
|
---|
4 |
|
---|
5 | #ifndef MARS_MHCalibrationChargePix
|
---|
6 | #include "MHCalibrationChargePix.h"
|
---|
7 | #endif
|
---|
8 |
|
---|
9 | class TH1F;
|
---|
10 | class MHCalibrationChargePINDiode : public MHCalibrationChargePix
|
---|
11 | {
|
---|
12 | private:
|
---|
13 |
|
---|
14 | TH1F fHRmsCharge; // Variance of summed FADC slices
|
---|
15 |
|
---|
16 | static const Int_t fgChargeNbins;
|
---|
17 | static const Axis_t fgChargeFirst;
|
---|
18 | static const Axis_t fgChargeLast;
|
---|
19 |
|
---|
20 | static const Int_t fgRmsChargeNbins;
|
---|
21 | static const Axis_t fgRmsChargeFirst;
|
---|
22 | static const Axis_t fgRmsChargeLast;
|
---|
23 |
|
---|
24 | static const Int_t fgAbsTimeNbins;
|
---|
25 | static const Axis_t fgAbsTimeFirst;
|
---|
26 | static const Axis_t fgAbsTimeLast;
|
---|
27 |
|
---|
28 | Int_t fRmsChargeNbins;
|
---|
29 | Axis_t fRmsChargeFirst;
|
---|
30 | Axis_t fRmsChargeLast;
|
---|
31 |
|
---|
32 | Float_t fExtractSlices;
|
---|
33 |
|
---|
34 | public:
|
---|
35 |
|
---|
36 | MHCalibrationChargePINDiode(const char *name=NULL, const char *title=NULL);
|
---|
37 | ~MHCalibrationChargePINDiode(){}
|
---|
38 |
|
---|
39 | void Clear(Option_t *o="");
|
---|
40 | void Init();
|
---|
41 |
|
---|
42 | Bool_t SetupFill(const MParList *pList);
|
---|
43 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
44 | Bool_t Finalize();
|
---|
45 |
|
---|
46 | // Setters
|
---|
47 | void SetChargeNbins(const Int_t bins =fgChargeNbins) { fChargeNbins = bins; }
|
---|
48 | void SetChargeFirst(const Axis_t first=fgChargeFirst) { fChargeFirst = first; }
|
---|
49 | void SetChargeLast( const Axis_t last =fgChargeLast) { fChargeLast = last; }
|
---|
50 |
|
---|
51 | void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; }
|
---|
52 | void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; }
|
---|
53 | void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; }
|
---|
54 |
|
---|
55 | void SetRmsChargeNbins(const Int_t bins =fgRmsChargeNbins) { fRmsChargeNbins = bins; }
|
---|
56 | void SetRmsChargeFirst(const Axis_t first=fgRmsChargeFirst) { fRmsChargeFirst = first; }
|
---|
57 | void SetRmsChargeLast( const Axis_t last =fgRmsChargeLast) { fRmsChargeLast = last; }
|
---|
58 |
|
---|
59 | // Getters
|
---|
60 | TH1F *GetHRmsCharge() { return &fHRmsCharge; }
|
---|
61 | const TH1F *GetHRmsCharge() const { return &fHRmsCharge; }
|
---|
62 |
|
---|
63 | // Fill histos
|
---|
64 | Bool_t FillRmsCharge(Float_t q);
|
---|
65 |
|
---|
66 | // Fits
|
---|
67 | Bool_t FitRmsCharge(Option_t *option="RQ0");
|
---|
68 |
|
---|
69 | // Draw
|
---|
70 | void Draw(Option_t *opt="");
|
---|
71 |
|
---|
72 | ClassDef(MHCalibrationChargePINDiode, 1) // Histogram class for the Calibration PIN Diode
|
---|
73 | };
|
---|
74 |
|
---|
75 | #endif
|
---|
76 |
|
---|