1 | #ifndef MARS_MHExtractedSignalPix
|
---|
2 | #define MARS_MHExtractedSignalPix
|
---|
3 |
|
---|
4 | #ifndef ROOT_TObject
|
---|
5 | #include <TObject.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TH1F;
|
---|
9 | class TH1I;
|
---|
10 | class TF1;
|
---|
11 | #include "TH1.h" // Axis_t
|
---|
12 |
|
---|
13 | class MHExtractedSignalPix : public TObject
|
---|
14 | {
|
---|
15 | private:
|
---|
16 |
|
---|
17 | static const Int_t gkChargeNbins;
|
---|
18 | static const Int_t gkChargevsNbins;
|
---|
19 | static const Axis_t gkChargevsNFirst;
|
---|
20 | static const Axis_t gkChargevsNLast;
|
---|
21 | static const Axis_t gkChargeFirst;
|
---|
22 | static const Axis_t gkChargeLast;
|
---|
23 |
|
---|
24 |
|
---|
25 | Int_t fPixId; // Pixel Nr
|
---|
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, kOscillating };
|
---|
45 |
|
---|
46 | public:
|
---|
47 |
|
---|
48 | MHExtractedSignalPix(/*const char *name=NULL, const char *title=NULL*/);
|
---|
49 | ~MHExtractedSignalPix();
|
---|
50 |
|
---|
51 | void Clear(Option_t *o="");
|
---|
52 | void Reset();
|
---|
53 |
|
---|
54 | void ChangeHistId(Int_t i);
|
---|
55 |
|
---|
56 | // Getters
|
---|
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 | Int_t GetTotalEntries() const { return fTotalEntries; }
|
---|
68 |
|
---|
69 | Bool_t IsFitOK() const;
|
---|
70 | Bool_t IsFitted() const;
|
---|
71 | Bool_t IsEmpty() const;
|
---|
72 | Bool_t IsOscillating() const;
|
---|
73 |
|
---|
74 | // Fill histos
|
---|
75 | Bool_t FillCharge(Float_t q);
|
---|
76 | Bool_t FillChargevsN(Float_t q);
|
---|
77 |
|
---|
78 | // Fits
|
---|
79 | Bool_t FitCharge(Option_t *option="RQ0");
|
---|
80 |
|
---|
81 | // Draws
|
---|
82 | void Draw(Option_t *option="");
|
---|
83 | TObject *DrawClone(Option_t *option="") const;
|
---|
84 |
|
---|
85 | // Prints
|
---|
86 | void Print(const Option_t *o="") const;
|
---|
87 |
|
---|
88 | // Others
|
---|
89 | void CutAllEdges();
|
---|
90 |
|
---|
91 | ClassDef(MHExtractedSignalPix, 1) // Histograms for each calibrated pixel
|
---|
92 | };
|
---|
93 |
|
---|
94 | #endif
|
---|