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 MCalibrationChargePINDiode;
|
---|
11 | class MHCalibrationChargePINDiode : public MHCalibrationChargePix
|
---|
12 | {
|
---|
13 | private:
|
---|
14 |
|
---|
15 | static const Int_t fgChargeNbins; // Default for fChargeNBins (now set to: 200 )
|
---|
16 | static const Axis_t fgChargeFirst; // Default for fChargeFirst (now set to: -0.5 )
|
---|
17 | static const Axis_t fgChargeLast; // Default for fChargeLast (now set to: 199.5 )
|
---|
18 | static const Int_t fgRmsChargeNbins; // Default for fChargeNBins (now set to: 100 )
|
---|
19 | static const Axis_t fgRmsChargeFirst; // Default for fChargeFirst (now set to: 0. )
|
---|
20 | static const Axis_t fgRmsChargeLast; // Default for fChargeLast (now set to: 100. )
|
---|
21 | static const Int_t fgAbsTimeNbins; // Default for fChargeNBins (now set to: 30 )
|
---|
22 | static const Axis_t fgAbsTimeFirst; // Default for fChargeFirst (now set to: -0.5 )
|
---|
23 | static const Axis_t fgAbsTimeLast; // Default for fChargeLast (now set to: 29.5 )
|
---|
24 |
|
---|
25 | MCalibrationChargePINDiode *fPINDiode; //! Storage container of the results
|
---|
26 |
|
---|
27 | TH1F fHRmsCharge; // Histogram containing Variance of summed FADC slices
|
---|
28 |
|
---|
29 | Int_t fRmsChargeNbins; // Number of bins used for the fHRmsCharge
|
---|
30 | Axis_t fRmsChargeFirst; // Lower bound bin used for the fHRmsCharge
|
---|
31 | Axis_t fRmsChargeLast; // Upper bound bin used for the fHRmsCharge
|
---|
32 |
|
---|
33 | Float_t fRmsChargeMean; // Mean of the Gauss fit
|
---|
34 | Float_t fRmsChargeSigma; // Sigma of the Gauss fit
|
---|
35 | Float_t fRmsChargeMeanErr; // Error of the mean of the Gauss fit
|
---|
36 | Float_t fRmsChargeSigmaErr; // Error of the sigma of the Gauss fit
|
---|
37 |
|
---|
38 | public:
|
---|
39 |
|
---|
40 | MHCalibrationChargePINDiode(const char *name=NULL, const char *title=NULL);
|
---|
41 | ~MHCalibrationChargePINDiode(){}
|
---|
42 |
|
---|
43 | Bool_t SetupFill(const MParList *pList);
|
---|
44 | Bool_t ReInit ( MParList *pList);
|
---|
45 | Bool_t Fill (const MParContainer *par, const Stat_t w=1);
|
---|
46 | Bool_t Finalize();
|
---|
47 |
|
---|
48 | // Setters
|
---|
49 | void SetChargeNbins(const Int_t bins =fgChargeNbins) { fChargeNbins = bins; }
|
---|
50 | void SetChargeFirst(const Axis_t first=fgChargeFirst) { fChargeFirst = first; }
|
---|
51 | void SetChargeLast( const Axis_t last =fgChargeLast) { fChargeLast = last; }
|
---|
52 |
|
---|
53 | void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; }
|
---|
54 | void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; }
|
---|
55 | void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; }
|
---|
56 |
|
---|
57 | void SetRmsChargeNbins(const Int_t bins =fgRmsChargeNbins) { fRmsChargeNbins = bins; }
|
---|
58 | void SetRmsChargeFirst(const Axis_t first=fgRmsChargeFirst) { fRmsChargeFirst = first; }
|
---|
59 | void SetRmsChargeLast( const Axis_t last =fgRmsChargeLast) { fRmsChargeLast = last; }
|
---|
60 |
|
---|
61 | // Getters
|
---|
62 | TH1F *GetHRmsCharge() { return &fHRmsCharge; }
|
---|
63 | const TH1F *GetHRmsCharge() const { return &fHRmsCharge; }
|
---|
64 |
|
---|
65 | Float_t GetRmsChargeMean() const { return fRmsChargeMean; }
|
---|
66 | Float_t GetRmsChargeMeanErr() const { return fRmsChargeMeanErr; }
|
---|
67 | Float_t GetRmsChargeSigma() const { return fRmsChargeSigma; }
|
---|
68 | Float_t GetRmsChargeSigmaErr() const { return fRmsChargeSigmaErr; }
|
---|
69 |
|
---|
70 | // Fill histos
|
---|
71 | Bool_t FillRmsCharge(const Float_t q);
|
---|
72 |
|
---|
73 | // Fits
|
---|
74 | Bool_t FitRmsCharge(Option_t *option="RQ0");
|
---|
75 |
|
---|
76 | // Draw
|
---|
77 | void Draw(Option_t *opt="");
|
---|
78 |
|
---|
79 | ClassDef(MHCalibrationChargePINDiode, 1) // Histogram class for the Calibration PIN Diode
|
---|
80 | };
|
---|
81 |
|
---|
82 | #endif
|
---|
83 |
|
---|