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 fQ; // The mean charge after the fit
|
---|
17 | Float_t fErrQ; // The error of mean charge after the fit
|
---|
18 | Float_t fSigmaQ; // The sigma of the mean charge after the fit
|
---|
19 | Float_t fErrSigmaQ; // The error of the sigma of the mean charge after the fit
|
---|
20 | Float_t fQProb; // The probability of the fit function
|
---|
21 |
|
---|
22 | Float_t fPed; // The mean pedestal (from MPedestalPix)
|
---|
23 | Float_t fPedRms; // The pedestal RMS (from MPedestalPix)
|
---|
24 |
|
---|
25 | Float_t fT; // The mean arrival time after the fit
|
---|
26 | Float_t fSigmaT; // The error of the mean arrival time after the fit
|
---|
27 | Float_t fTProb; // The probability of the fit function
|
---|
28 |
|
---|
29 | Float_t fRQ; // The reduced mean charge after the fit
|
---|
30 | Float_t fErrRQ; // The error of the reduced mean charge after the fit
|
---|
31 |
|
---|
32 | Float_t fFactor; // The F-factor
|
---|
33 | Float_t fPheFFactorMethod; // The number of Phe's calculated after the F-factor method
|
---|
34 | Float_t fConversionFFactorMethod; // The conversion factor to Phe's calculated after the F-factor method
|
---|
35 |
|
---|
36 | MHCalibrationPixel *fHist; // Pointer to the histograms performing the fits, etc.
|
---|
37 |
|
---|
38 | public:
|
---|
39 |
|
---|
40 | MCalibrationPix(const char *name=NULL, const char *title=NULL);
|
---|
41 | ~MCalibrationPix();
|
---|
42 |
|
---|
43 | void Clear(Option_t *o="");
|
---|
44 |
|
---|
45 | Float_t GetQ() const { return fQ; }
|
---|
46 | Float_t GetRQ() const { return fRQ; }
|
---|
47 |
|
---|
48 | Float_t GetErrQ() const { return fErrQ; }
|
---|
49 | Float_t GetErrRQ() const { return fErrRQ; }
|
---|
50 | Float_t GetQProb() const { return fQProb; }
|
---|
51 |
|
---|
52 | Float_t GetSigmaQ() const { return fSigmaQ; }
|
---|
53 | Float_t GetErrSigmaQ() const { return fErrSigmaQ; }
|
---|
54 | Float_t GetT() const { return fT; }
|
---|
55 | Float_t GetSigmaT() const { return fSigmaT; }
|
---|
56 | Float_t GetTProb() const { return fTProb; }
|
---|
57 |
|
---|
58 | Float_t GetPed() const { return fPed; }
|
---|
59 | Float_t GetPedRms() const { return fPedRms; }
|
---|
60 |
|
---|
61 | void SetPedestal(Float_t ped, Float_t pedrms);
|
---|
62 |
|
---|
63 | Bool_t FillQ(Int_t q) { return fHist->FillQ(q); }
|
---|
64 | Bool_t FillT(Int_t t) { return fHist->FillT(t); }
|
---|
65 | Bool_t FillRQvsT(Float_t rq, Int_t t) { return fHist->FillQvsN(rq,t); }
|
---|
66 |
|
---|
67 | Bool_t IsValid() const { return fRQ >=0 || fErrRQ >= 0; }
|
---|
68 | Int_t GetPixId() const { return fPixId; }
|
---|
69 | void ChangePixId(Int_t i);
|
---|
70 |
|
---|
71 | Bool_t FitQ();
|
---|
72 | Bool_t FitT();
|
---|
73 |
|
---|
74 | MHCalibrationPixel *GetHist() const { return fHist; }
|
---|
75 | virtual void Draw(Option_t *opt="") { fHist->Draw(opt); }
|
---|
76 |
|
---|
77 | Float_t GetPheFFactorMethod() const { return fPheFFactorMethod; }
|
---|
78 | Float_t GetConversionFFactorMethod() const { return fConversionFFactorMethod; }
|
---|
79 |
|
---|
80 | ClassDef(MCalibrationPix, 1) // Storage Container for Calibration information of one pixel
|
---|
81 | };
|
---|
82 |
|
---|
83 | #endif
|
---|
84 |
|
---|