| 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 fNBins (now set to: 200 )
|
|---|
| 16 | static const Axis_t fgChargeFirst; //! Default for fFirst (now set to: -0.5 )
|
|---|
| 17 | static const Axis_t fgChargeLast; //! Default for fLast (now set to: 199.5 )
|
|---|
| 18 | static const Int_t fgRmsChargeNbins; //! Default for fRmsChargeNBins (now set to: 100 )
|
|---|
| 19 | static const Axis_t fgRmsChargeFirst; //! Default for fRmsChargeFirst (now set to: 0. )
|
|---|
| 20 | static const Axis_t fgRmsChargeLast; //! Default for fRmsChargeLast (now set to: 100. )
|
|---|
| 21 | static const Int_t fgAbsTimeNbins; //! Default for fAbsTimeNBins (now set to: 30 )
|
|---|
| 22 | static const Axis_t fgAbsTimeFirst; //! Default for fAbsTimeFirst (now set to: -0.5 )
|
|---|
| 23 | static const Axis_t fgAbsTimeLast; //! Default for fAbsTimeLast (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 SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; }
|
|---|
| 50 | void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; }
|
|---|
| 51 | void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; }
|
|---|
| 52 |
|
|---|
| 53 | void SetRmsChargeNbins(const Int_t bins =fgRmsChargeNbins) { fRmsChargeNbins = bins; }
|
|---|
| 54 | void SetRmsChargeFirst(const Axis_t first=fgRmsChargeFirst) { fRmsChargeFirst = first; }
|
|---|
| 55 | void SetRmsChargeLast( const Axis_t last =fgRmsChargeLast) { fRmsChargeLast = last; }
|
|---|
| 56 |
|
|---|
| 57 | // Getters
|
|---|
| 58 | TH1F *GetHRmsCharge() { return &fHRmsCharge; }
|
|---|
| 59 | const TH1F *GetHRmsCharge() const { return &fHRmsCharge; }
|
|---|
| 60 |
|
|---|
| 61 | Float_t GetRmsChargeMean() const { return fRmsChargeMean; }
|
|---|
| 62 | Float_t GetRmsChargeMeanErr() const { return fRmsChargeMeanErr; }
|
|---|
| 63 | Float_t GetRmsChargeSigma() const { return fRmsChargeSigma; }
|
|---|
| 64 | Float_t GetRmsChargeSigmaErr() const { return fRmsChargeSigmaErr; }
|
|---|
| 65 |
|
|---|
| 66 | // Fill histos
|
|---|
| 67 | Bool_t FillRmsCharge(const Float_t q);
|
|---|
| 68 |
|
|---|
| 69 | // Fits
|
|---|
| 70 | Bool_t FitRmsCharge(Option_t *option="RQ0");
|
|---|
| 71 |
|
|---|
| 72 | // Draw
|
|---|
| 73 | void Draw(Option_t *opt="");
|
|---|
| 74 |
|
|---|
| 75 | ClassDef(MHCalibrationChargePINDiode, 1) // Histogram class for Charge PIN Diode Calibration
|
|---|
| 76 | };
|
|---|
| 77 |
|
|---|
| 78 | #endif
|
|---|
| 79 |
|
|---|