Changeset 4556 for trunk/MagicSoft/Mars/mpedestal/MPedestalPix.h
- Timestamp:
- 08/10/04 10:35:48 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedestalPix.h
r4404 r4556 9 9 { 10 10 private: 11 Float_t fPedestal; // mean value of pedestal (PMT offset) 12 Float_t fPedestalRms; // root mean square / sigma / standard deviation of pedestal 13 Float_t fPedestalABoffset; // the difference between odd slice pedestal mean and total mean 14 UInt_t fNumEvents; // number of times, the Process was executed (to estimate the error of pedestal) 11 15 12 Float_t fPedestal; // mean value of pedestal (PMT offset)13 Float_t fPedestalRms; // root mean square / sigma / standard deviation of pedestal14 Float_t fPedestalABoffset; // the difference between odd slice pedestal mean and the15 // total pedestal mean (fPedestal). For even slices pedestal16 // use -fPedestalABoffset.17 UInt_t fNumEvents; // number of times, the Process was executed (to estimate the error of pedestal)18 Bool_t fValid; // flag to set pixel valid19 20 16 public: 21 MPedestalPix();22 23 void Clear(Option_t *o="");24 25 // Using histograms26 void InitUseHists();27 17 MPedestalPix(); 18 19 void Clear(Option_t *o=""); 20 21 // Using histograms 22 void InitUseHists(); 23 28 24 // Setters 29 void SetPedestal(const Float_t f) { fPedestal = f; }30 void SetPedestalRms(const Float_t f) { fPedestalRms = f; }31 void SetPedestalABoffset(const Float_t f) { fPedestalABoffset = f; }32 void SetNumEvents(const UInt_t n) { fNumEvents = n; }25 void SetPedestal(const Float_t f) { fPedestal = f; } 26 void SetPedestalRms(const Float_t f) { fPedestalRms = f; } 27 void SetPedestalABoffset(const Float_t f) { fPedestalABoffset = f; } 28 void SetNumEvents(const UInt_t n) { fNumEvents = n; } 33 29 34 void Set(const Float_t m, const Float_t r, const Float_t offs=0, const UInt_t n=0); 35 void SetValid(const Bool_t b=kTRUE) { fValid = b; } 36 37 // Getters 38 Float_t GetPedestal() const { return fPedestal; } 39 Float_t GetPedestalRms() const { return fPedestalRms; } 40 Float_t GetPedestalABoffset() const { return fPedestalABoffset; } 41 Float_t GetPedestalError() const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents) : 0; } 42 Float_t GetPedestalRmsError() const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents/2) : 0; } 43 44 Bool_t IsValid() const; 30 void Set(const Float_t m, const Float_t r, const Float_t offs=0, const UInt_t n=0); 45 31 46 ClassDef(MPedestalPix, 2) // Storage Container for Pedestal information of one pixel 32 // Getters 33 Float_t GetPedestal() const { return fPedestal; } 34 Float_t GetPedestalRms() const { return fPedestalRms; } 35 Float_t GetPedestalABoffset() const { return fPedestalABoffset; } 36 Float_t GetPedestalError() const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents) : 0; } 37 Float_t GetPedestalRmsError() const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents/2) : 0; } 38 39 Bool_t IsValid() const; 40 41 ClassDef(MPedestalPix, 3) // Storage Container for Pedestal information of one pixel 47 42 }; 48 43 49 44 #endif 50
Note:
See TracChangeset
for help on using the changeset viewer.