source: trunk/MagicSoft/Mars/manalysis/MHPedestalPixel.h@ 2983

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