1 | #ifndef MARS_MHPedestalPixel
|
---|
2 | #define MARS_MHPedestalPixel
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH1F;
|
---|
9 | class TH1I;
|
---|
10 | class TF1;
|
---|
11 | class MHPedestalPixel : public MH
|
---|
12 | {
|
---|
13 |
|
---|
14 | private:
|
---|
15 |
|
---|
16 | Int_t fPixId; // Pixel Nr
|
---|
17 |
|
---|
18 | const Int_t fChargeNbins;
|
---|
19 | const Int_t fChargevsNbins;
|
---|
20 |
|
---|
21 | const Axis_t fChargevsNFirst;
|
---|
22 | const Axis_t fChargevsNLast;
|
---|
23 |
|
---|
24 | Axis_t fChargeFirst;
|
---|
25 | Axis_t fChargeLast;
|
---|
26 |
|
---|
27 | TH1F* fHPedestalCharge; //-> Summed FADC slices
|
---|
28 | TH1I* fHPedestalChargevsN; //-> Summed FADC slices vs Event nr.
|
---|
29 | TF1* fGausFit; // Fit the the Summed FADC slices
|
---|
30 |
|
---|
31 | Int_t fTotalEntries; // Number of entries
|
---|
32 |
|
---|
33 | Double_t fChargeChisquare;
|
---|
34 | Double_t fChargeProb;
|
---|
35 | Int_t fChargeNdf;
|
---|
36 |
|
---|
37 | Double_t fChargeMean;
|
---|
38 | Double_t fChargeMeanErr;
|
---|
39 | Double_t fChargeSigma;
|
---|
40 | Double_t fChargeSigmaErr;
|
---|
41 |
|
---|
42 | Byte_t fFlags;
|
---|
43 |
|
---|
44 | enum { kFitted, kFitOK };
|
---|
45 |
|
---|
46 | public:
|
---|
47 |
|
---|
48 | MHPedestalPixel(const char *name=NULL, const char *title=NULL);
|
---|
49 | ~MHPedestalPixel();
|
---|
50 |
|
---|
51 | void Clear(Option_t *o="");
|
---|
52 | void Reset();
|
---|
53 |
|
---|
54 | void ChangeHistId(Int_t i);
|
---|
55 |
|
---|
56 | // Setters
|
---|
57 | const TH1F *GetHPedestalCharge() const { return fHPedestalCharge; }
|
---|
58 |
|
---|
59 | Double_t GetChargeMean() const { return fChargeMean; }
|
---|
60 | Double_t GetChargeMeanErr() const { return fChargeMeanErr; }
|
---|
61 | Double_t GetChargeSigma() const { return fChargeSigma; }
|
---|
62 | Double_t GetChargeSigmaErr() const { return fChargeSigmaErr; }
|
---|
63 | Double_t GetChargeChiSquare() const { return fChargeChisquare; }
|
---|
64 | Double_t GetChargeProb() const { return fChargeProb; }
|
---|
65 | Int_t GetChargeNdf() const { return fChargeNdf; }
|
---|
66 |
|
---|
67 | Bool_t IsFitOK() const;
|
---|
68 | Bool_t IsEmpty() const;
|
---|
69 |
|
---|
70 | // Fill histos
|
---|
71 | Bool_t FillCharge(Float_t q);
|
---|
72 | Bool_t FillChargevsN(Float_t q);
|
---|
73 |
|
---|
74 | Bool_t SetupFill(const MParList *pList);
|
---|
75 | Bool_t Fill(const MParContainer *, const Stat_t w=1) { return kTRUE; }
|
---|
76 |
|
---|
77 | // Fits
|
---|
78 | Bool_t FitCharge(Option_t *option="RQ0");
|
---|
79 |
|
---|
80 | // Draws
|
---|
81 | void Draw(Option_t *option="");
|
---|
82 | TObject *DrawClone(Option_t *option="") const;
|
---|
83 |
|
---|
84 | // Prints
|
---|
85 | void Print(const Option_t *o="") const;
|
---|
86 |
|
---|
87 | // Others
|
---|
88 | void CutAllEdges();
|
---|
89 |
|
---|
90 | ClassDef(MHPedestalPixel, 1) // Histograms for each calibrated pixel
|
---|
91 | };
|
---|
92 |
|
---|
93 | #endif
|
---|