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

Last change on this file since 3012 was 2997, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.3 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 // Getters
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 Int_t GetTotalEntries() const { return fTotalEntries; }
67
68 Bool_t IsFitOK() const;
69 Bool_t IsEmpty() const;
70
71 // Fill histos
72 Bool_t FillCharge(Float_t q);
73 Bool_t FillChargevsN(Float_t q);
74
75 Bool_t SetupFill(const MParList *pList);
76 Bool_t Fill(const MParContainer *, const Stat_t w=1) { return kTRUE; }
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(MHPedestalPixel, 1) // Histograms for each calibrated pixel
92};
93
94#endif
Note: See TracBrowser for help on using the repository browser.