| 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 fRSigmaSquare; // 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 fTimeChiSquare; // 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 |
|
|---|
| 33 | Float_t fConversionFFactorMethod; // The conversion factor to Ph's calculated after the F-factor method
|
|---|
| 34 | Float_t fConversionBlindPixelMethod; // The conversion factor to Ph's calculated after the Blind Pixel method
|
|---|
| 35 | Float_t fConversionPINDiodeMethod; // The conversion factor to Ph's calculated after the PIN Diode method
|
|---|
| 36 |
|
|---|
| 37 | Float_t fConversionErrorFFactorMethod; // The conversion factor to Phe's calculated after the F-factor method
|
|---|
| 38 | Float_t fConversionErrorBlindPixelMethod; // The conversion factor to Phe's calculated after the Blind Pixel method
|
|---|
| 39 | Float_t fConversionErrorPINDiodeMethod; // The conversion factor to Phe's calculated after the PIN Diode method
|
|---|
| 40 |
|
|---|
| 41 | Float_t fConversionSigmaFFactorMethod; // The conversion factor to Ph's calculated after the F-factor method
|
|---|
| 42 | Float_t fConversionSigmaBlindPixelMethod; // The conversion factor to Ph's calculated after the Blind Pixel method
|
|---|
| 43 | Float_t fConversionSigmaPINDiodeMethod; // The conversion factor to Phd's calculated after the PIN Diode method
|
|---|
| 44 |
|
|---|
| 45 | Bool_t fHiGainSaturation; // Is Lo-Gain used at all?
|
|---|
| 46 |
|
|---|
| 47 | Float_t fElectronicPedRms;
|
|---|
| 48 |
|
|---|
| 49 | MHCalibrationPixel *fHist; //! Pointer to the histograms performing the fits, etc.
|
|---|
| 50 |
|
|---|
| 51 | public:
|
|---|
| 52 |
|
|---|
| 53 | MCalibrationPix(const char *name=NULL, const char *title=NULL);
|
|---|
| 54 | ~MCalibrationPix();
|
|---|
| 55 |
|
|---|
| 56 | void Clear(Option_t *o="");
|
|---|
| 57 |
|
|---|
| 58 | Float_t GetCharge() const { return fCharge; }
|
|---|
| 59 | Float_t GetRSigmaSquare() const { return fRSigmaSquare; }
|
|---|
| 60 |
|
|---|
| 61 | Float_t GetErrCharge() const { return fErrCharge; }
|
|---|
| 62 | Float_t GetChargeProb() const { return fChargeProb; }
|
|---|
| 63 |
|
|---|
| 64 | Float_t GetSigmaCharge() const { return fSigmaCharge; }
|
|---|
| 65 | Float_t GetErrSigmaCharge() const { return fErrSigmaCharge; }
|
|---|
| 66 | Float_t GetTime() const { return fTime; }
|
|---|
| 67 | Float_t GetSigmaTime() const { return fSigmaTime; }
|
|---|
| 68 | Float_t GetTimeChiSquare() const { return fTimeChiSquare; }
|
|---|
| 69 |
|
|---|
| 70 | Float_t GetPed() const { return fPed; }
|
|---|
| 71 | Float_t GetPedRms() const { return fPedRms; }
|
|---|
| 72 |
|
|---|
| 73 | void SetPedestal(Float_t ped, Float_t pedrms);
|
|---|
| 74 | void SetHiGainSaturation() { fHiGainSaturation = kTRUE; fHist->SetUseLoGain(); }
|
|---|
| 75 |
|
|---|
| 76 | void SetConversionFFactorMethod(Float_t c, Float_t err, Float_t sig)
|
|---|
| 77 | {
|
|---|
| 78 | fConversionFFactorMethod = c;
|
|---|
| 79 | fConversionErrorFFactorMethod = err;
|
|---|
| 80 | fConversionSigmaFFactorMethod = sig;
|
|---|
| 81 | }
|
|---|
| 82 | void SetConversionBlindPixelMethod(Float_t c, Float_t err, Float_t sig)
|
|---|
| 83 | {
|
|---|
| 84 | fConversionBlindPixelMethod = c;
|
|---|
| 85 | fConversionErrorBlindPixelMethod = err;
|
|---|
| 86 | fConversionSigmaBlindPixelMethod = sig;
|
|---|
| 87 | }
|
|---|
| 88 |
|
|---|
| 89 | void SetConversionPINDiodeMethod(Float_t c, Float_t err, Float_t sig)
|
|---|
| 90 | {
|
|---|
| 91 | fConversionPINDiodeMethod = c ;
|
|---|
| 92 | fConversionErrorPINDiodeMethod = err;
|
|---|
| 93 | fConversionSigmaPINDiodeMethod = sig;
|
|---|
| 94 | }
|
|---|
| 95 |
|
|---|
| 96 | Float_t GetMeanConversionBlindPixelMethod() { return fConversionBlindPixelMethod ; }
|
|---|
| 97 | Float_t GetErrorConversionBlindPixelMethod() { return fConversionErrorBlindPixelMethod ; }
|
|---|
| 98 | Float_t GetSigmaConversionBlindPixelMethod() { return fConversionSigmaBlindPixelMethod ; }
|
|---|
| 99 |
|
|---|
| 100 | Float_t GetMeanConversionFFactorMethod() { return fConversionFFactorMethod ; }
|
|---|
| 101 | Float_t GetErrorConversionFFactorMethod() { return fConversionErrorFFactorMethod ; }
|
|---|
| 102 | Float_t GetSigmaConversionFFactorMethod() { return fConversionSigmaFFactorMethod ; }
|
|---|
| 103 |
|
|---|
| 104 | Float_t GetMeanConversionPINDiodeMethod() { return fConversionPINDiodeMethod ; }
|
|---|
| 105 | Float_t GetErrorConversionPINDiodeMethod() { return fConversionErrorPINDiodeMethod ; }
|
|---|
| 106 | Float_t GetSigmaConversionPINDiodeMethod() { return fConversionSigmaPINDiodeMethod ; }
|
|---|
| 107 |
|
|---|
| 108 | void SetChargesInGraph(Float_t qhi,Float_t qlo) { fHist->SetPointInGraph(qhi,qlo); }
|
|---|
| 109 |
|
|---|
| 110 | Bool_t FillChargeHiGain(Float_t q) { return fHist->FillChargeHiGain(q); }
|
|---|
| 111 | Bool_t FillTimeHiGain(Int_t t) { return fHist->FillTimeHiGain(t); }
|
|---|
| 112 | Bool_t FillRChargevsTimeHiGain(Float_t rq, Int_t t) { return fHist->FillChargevsNHiGain(rq,t); }
|
|---|
| 113 |
|
|---|
| 114 | Bool_t FillChargeLoGain(Float_t q) { return fHist->FillChargeLoGain(q); }
|
|---|
| 115 | Bool_t FillTimeLoGain(Int_t t) { return fHist->FillTimeLoGain(t); }
|
|---|
| 116 | Bool_t FillRChargevsTimeLoGain(Float_t rq, Int_t t) { return fHist->FillChargevsNLoGain(rq,t); }
|
|---|
| 117 |
|
|---|
| 118 | Bool_t IsValid() const { return fCharge >=0 || fErrCharge >= 0; }
|
|---|
| 119 | Int_t GetPixId() const { return fPixId; }
|
|---|
| 120 | void DefinePixId(Int_t i);
|
|---|
| 121 |
|
|---|
| 122 | Bool_t FitCharge();
|
|---|
| 123 | Bool_t FitTime();
|
|---|
| 124 |
|
|---|
| 125 | MHCalibrationPixel *GetHist() const { return fHist; }
|
|---|
| 126 | void Draw(Option_t *opt="") { fHist->Draw(opt); }
|
|---|
| 127 |
|
|---|
| 128 | Float_t GetPheFFactorMethod() const { return fPheFFactorMethod; }
|
|---|
| 129 | Float_t GetConversionFFactorMethod() const { return fConversionFFactorMethod; }
|
|---|
| 130 |
|
|---|
| 131 | ClassDef(MCalibrationPix, 1) // Storage Container for Calibration information of one pixel
|
|---|
| 132 | };
|
|---|
| 133 |
|
|---|
| 134 | #endif
|
|---|
| 135 |
|
|---|