| 1 | #ifndef MARS_MCalibrationPix
|
|---|
| 2 | #define MARS_MCalibrationPix
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MParContainer
|
|---|
| 5 | #include "MParContainer.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #include "MHCalibrationPixel.h"
|
|---|
| 9 |
|
|---|
| 10 | class MCalibrationPix : public MParContainer
|
|---|
| 11 | {
|
|---|
| 12 | private:
|
|---|
| 13 |
|
|---|
| 14 | Int_t fPixId; // the pixel Id
|
|---|
| 15 |
|
|---|
| 16 | Float_t fCharge; // The mean reduced charge after the fit
|
|---|
| 17 | Float_t fErrCharge; // The error of reduced mean charge after the fit
|
|---|
| 18 | Float_t fSigmaCharge; // The sigma of the mean charge after the fit
|
|---|
| 19 | Float_t fErrSigmaCharge; // The error of the sigma of the mean charge after the fit
|
|---|
| 20 | Float_t fRSigma; // The reduced squares of sigmas after the fit
|
|---|
| 21 | Float_t fChargeProb; // The probability of the fit function
|
|---|
| 22 |
|
|---|
| 23 | Float_t fPed; // The mean pedestal (from MPedestalPix)
|
|---|
| 24 | Float_t fPedRms; // The pedestal RMS (from MPedestalPix)
|
|---|
| 25 |
|
|---|
| 26 | Float_t fTime; // The mean arrival time after the fit
|
|---|
| 27 | Float_t fSigmaTime; // The error of the mean arrival time after the fit
|
|---|
| 28 | Float_t fTimeProb; // The probability of the fit function
|
|---|
| 29 |
|
|---|
| 30 | Float_t fFactor; // The laboratory F-factor
|
|---|
| 31 | Float_t fPheFFactorMethod; // The number of Phe's calculated after the F-factor method
|
|---|
| 32 | Float_t fConversionFFactorMethod; // The conversion factor to Phe's calculated after the F-factor method
|
|---|
| 33 |
|
|---|
| 34 | Bool_t fHiGainSaturation; // Is Lo-Gain used at all?
|
|---|
| 35 |
|
|---|
| 36 | Float_t fLoGainPedRms;
|
|---|
| 37 |
|
|---|
| 38 | MHCalibrationPixel *fHist; //! Pointer to the histograms performing the fits, etc.
|
|---|
| 39 |
|
|---|
| 40 | public:
|
|---|
| 41 |
|
|---|
| 42 | MCalibrationPix(const char *name=NULL, const char *title=NULL);
|
|---|
| 43 | ~MCalibrationPix();
|
|---|
| 44 |
|
|---|
| 45 | void Clear(Option_t *o="");
|
|---|
| 46 |
|
|---|
| 47 | Float_t GetCharge() const { return fCharge; }
|
|---|
| 48 | Float_t GetRSigma() const { return fRSigma; }
|
|---|
| 49 |
|
|---|
| 50 | Float_t GetErrCharge() const { return fErrCharge; }
|
|---|
| 51 | Float_t GetChargeProb() const { return fChargeProb; }
|
|---|
| 52 |
|
|---|
| 53 | Float_t GetSigmaCharge() const { return fSigmaCharge; }
|
|---|
| 54 | Float_t GetErrSigmaCharge() const { return fErrSigmaCharge; }
|
|---|
| 55 | Float_t GetTime() const { return fTime; }
|
|---|
| 56 | Float_t GetSigmaTime() const { return fSigmaTime; }
|
|---|
| 57 | Float_t GetTimeProb() const { return fTimeProb; }
|
|---|
| 58 |
|
|---|
| 59 | Float_t GetPed() const { return fPed; }
|
|---|
| 60 | Float_t GetPedRms() const { return fPedRms; }
|
|---|
| 61 |
|
|---|
| 62 | void SetPedestal(Float_t ped, Float_t pedrms);
|
|---|
| 63 | void SetHiGainSaturation() { fHiGainSaturation = kTRUE; fHist->SetUseLoGain(); }
|
|---|
| 64 |
|
|---|
| 65 | Bool_t FillChargeHiGain(Float_t q) { return fHist->FillChargeHiGain(q); }
|
|---|
| 66 | Bool_t FillTimeHiGain(Int_t t) { return fHist->FillTimeHiGain(t); }
|
|---|
| 67 | Bool_t FillRChargevsTimeHiGain(Float_t rq, Int_t t) { return fHist->FillChargevsNHiGain(rq,t); }
|
|---|
| 68 |
|
|---|
| 69 | Bool_t FillChargeLoGain(Float_t q) { return fHist->FillChargeLoGain(q); }
|
|---|
| 70 | Bool_t FillTimeLoGain(Int_t t) { return fHist->FillTimeLoGain(t); }
|
|---|
| 71 | Bool_t FillRChargevsTimeLoGain(Float_t rq, Int_t t) { return fHist->FillChargevsNLoGain(rq,t); }
|
|---|
| 72 |
|
|---|
| 73 | Bool_t IsValid() const { return fCharge >=0 || fErrCharge >= 0; }
|
|---|
| 74 | Int_t GetPixId() const { return fPixId; }
|
|---|
| 75 | void DefinePixId(Int_t i);
|
|---|
| 76 |
|
|---|
| 77 | Bool_t FitCharge();
|
|---|
| 78 | Bool_t FitTime();
|
|---|
| 79 |
|
|---|
| 80 | MHCalibrationPixel *GetHist() const { return fHist; }
|
|---|
| 81 | void Draw(Option_t *opt="") { fHist->Draw(opt); }
|
|---|
| 82 |
|
|---|
| 83 | Float_t GetPheFFactorMethod() const { return fPheFFactorMethod; }
|
|---|
| 84 | Float_t GetConversionFFactorMethod() const { return fConversionFFactorMethod; }
|
|---|
| 85 |
|
|---|
| 86 | ClassDef(MCalibrationPix, 1) // Storage Container for Calibration information of one pixel
|
|---|
| 87 | };
|
|---|
| 88 |
|
|---|
| 89 | #endif
|
|---|
| 90 |
|
|---|