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