source: trunk/MagicSoft/Mars/manalysis/MPedestalPix.h@ 2951

Last change on this file since 2951 was 2951, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MPedestalPix
2#define MARS_MPedestalPix
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef MARS_MHPedestalPixel
9#include "MHPedestalPixel.h"
10#endif
11
12class MHPedestalPixel;
13class MPedestalPix : public MParContainer
14{
15private:
16 Float_t fPedestal; // mean value of pedestal (PMT offset)
17 Float_t fPedestalRms; // root mean square / sigma / standard deviation of pedestal
18
19 MHPedestalPixel *fHist; // Pointer to the histograms performing the fits, etc.
20
21 Float_t fMean;
22 Float_t fMeanErr;
23 Float_t fSigma;
24 Float_t fSigmaErr;
25 Float_t fProb;
26
27 Byte_t fFlags;
28
29 enum { kFitted, kFitValid };
30
31public:
32 MPedestalPix();
33 ~MPedestalPix();
34
35 void Clear(Option_t *o="");
36
37 // Using histograms
38 void InitUseHists();
39 void FillHists(const Float_t f);
40
41 // Setters
42 void SetPedestal(const Float_t f) { fPedestal = f; }
43 void SetPedestalRms(const Float_t f) { fPedestalRms = f; }
44
45 void Set(const Float_t m, const Float_t r);
46
47 // Getters
48 Float_t GetPedestal() const { return fPedestal; }
49 Float_t GetPedestalRms() const { return fPedestalRms; }
50
51 Float_t GetMean() const { return fMean; }
52 Float_t GetMeanErr() const { return fMeanErr; }
53 Float_t GetSigma() const { return fSigma; }
54 Float_t GetSigmaErr() const { return fSigmaErr; }
55 Float_t GetProb() const { return fProb; }
56
57 Bool_t IsValid() const;
58 Bool_t IsFitted() const;
59 Bool_t IsFitValid() const;
60
61 // Fits
62 void FitCharge();
63 Bool_t CheckFitValidity();
64
65 // Draws
66 void Draw(Option_t *opt="") { fHist->Draw(opt); }
67 TObject *DrawClone(Option_t *opt="") const { return fHist->DrawClone(opt); }
68
69 ClassDef(MPedestalPix, 1) // Storage Container for Pedestal information of one pixel
70};
71
72#endif
73
Note: See TracBrowser for help on using the repository browser.