source: branches/AddingGoogleTestEnvironment/mpedestal/MPedestalPix.h@ 18481

Last change on this file since 18481 was 9332, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MPedestalPix
2#define MARS_MPedestalPix
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MPedestalPix : public MParContainer
9{
10private:
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)
15
16public:
17 MPedestalPix();
18
19 void Clear(Option_t *o="");
20 void Copy(TObject &object) const;
21 void Print(Option_t *o="") const;
22
23 // Using histograms
24 void InitUseHists();
25
26 // Setters
27 void SetPedestal(const Float_t f) { fPedestal = f; }
28 void SetPedestalRms(const Float_t f) { fPedestalRms = f; }
29 void SetPedestalABoffset(const Float_t f) { fPedestalABoffset = f; }
30 void SetNumEvents(const UInt_t n) { fNumEvents = n; }
31
32 void Set(const Float_t m, const Float_t r, const Float_t offs=0, const UInt_t n=0);
33
34 // Getters
35 Float_t GetPedestal() const { return fPedestal; }
36 Float_t GetPedestalRms() const { return fPedestalRms; }
37 Float_t GetPedestalABoffset() const { return fPedestalABoffset; }
38
39 Float_t GetPedestalError() const;
40 Float_t GetPedestalRmsError() const;
41
42 UInt_t GetNumEvents() const { return fNumEvents; }
43
44 Bool_t IsValid() const;
45
46 ClassDef(MPedestalPix, 3) // Storage Container for Pedestal information of one pixel
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.