source: trunk/MagicSoft/Mars/manalysis/MCalibrationPix.h@ 2629

Last change on this file since 2629 was 2627, checked in by gaug, 21 years ago
*** empty log message ***
File size: 3.6 KB
Line 
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
10class MCalibrationPix : public MParContainer
11{
12private:
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 MHCalibrationPixel *fHist; //! Pointer to the histograms performing the fits, etc.
37
38public:
39
40 MCalibrationPix(const char *name=NULL, const char *title=NULL);
41 ~MCalibrationPix();
42
43 void Clear(Option_t *o="");
44
45 Float_t GetCharge() const { return fCharge; }
46 Float_t GetRSigma() const { return fRSigma; }
47
48 Float_t GetErrCharge() const { return fErrCharge; }
49 Float_t GetChargeProb() const { return fChargeProb; }
50
51 Float_t GetSigmaCharge() const { return fSigmaCharge; }
52 Float_t GetErrSigmaCharge() const { return fErrSigmaCharge; }
53 Float_t GetTime() const { return fTime; }
54 Float_t GetSigmaTime() const { return fSigmaTime; }
55 Float_t GetTimeProb() const { return fTimeProb; }
56
57 Float_t GetPed() const { return fPed; }
58 Float_t GetPedRms() const { return fPedRms; }
59
60 void SetPedestal(Float_t ped, Float_t pedrms);
61 void SetHiGainSaturation() { fHiGainSaturation = kTRUE; fHist->SetUseLoGain(); }
62
63 Bool_t FillChargeHiGain(Float_t q) { return fHist->FillChargeHiGain(q); }
64 Bool_t FillTimeHiGain(Int_t t) { return fHist->FillTimeHiGain(t); }
65 Bool_t FillRChargevsTimeHiGain(Float_t rq, Int_t t) { return fHist->FillChargevsNHiGain(rq,t); }
66
67 Bool_t FillChargeLoGain(Float_t q) { return fHist->FillChargeLoGain(q); }
68 Bool_t FillTimeLoGain(Int_t t) { return fHist->FillTimeLoGain(t); }
69 Bool_t FillRChargevsTimeLoGain(Float_t rq, Int_t t) { return fHist->FillChargevsNLoGain(rq,t); }
70
71 Bool_t IsValid() const { return fCharge >=0 || fErrCharge >= 0; }
72 Int_t GetPixId() const { return fPixId; }
73 void DefinePixId(Int_t i);
74
75 Bool_t FitCharge();
76 Bool_t FitTime();
77
78 MHCalibrationPixel *GetHist() const { return fHist; }
79 void Draw(Option_t *opt="") { fHist->Draw(opt); }
80
81 Float_t GetPheFFactorMethod() const { return fPheFFactorMethod; }
82 Float_t GetConversionFFactorMethod() const { return fConversionFFactorMethod; }
83
84 ClassDef(MCalibrationPix, 1) // Storage Container for Calibration information of one pixel
85};
86
87#endif
88
Note: See TracBrowser for help on using the repository browser.