source: branches/MarsISDCBranchBasedOn17887/mpedestal/MPedPhotPix.h@ 18164

Last change on this file since 18164 was 6085, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef MARS_MPedPhotPix
2#define MARS_MPedPhotPix
3
4#ifndef ROOT_TObject
5#include <TObject.h>
6#endif
7#ifndef MARS_MMath
8#include "MMath.h"
9#endif
10
11class MPedPhotPix : public TObject
12{
13private:
14 Float_t fMean; // [phot] mean value of pedestal (should be 0)
15 Float_t fRms; // [phot] rms of mean
16
17 UInt_t fNumEvents; // [n] number of events used to calculate mean (0=n/a)
18
19public:
20 MPedPhotPix();
21
22 void Clear(Option_t *o="");
23
24 Float_t GetMean() const { return fMean; }
25 Float_t GetRms() const { return fRms; }
26 UInt_t GetNumEvents() const { return fNumEvents; }
27
28 //void SetMean(Float_t f) { fMean = f; }
29 void SetRms(Float_t f) { MMath::ReducePrecision(f); fRms = f; }
30 void Set(Float_t m, Float_t r, UInt_t n=1) { MMath::ReducePrecision(r); MMath::ReducePrecision(m); fMean = m; fRms = r; fNumEvents=n; }
31
32 Bool_t IsValid() const { return fRms>=0; }
33
34 ClassDef(MPedPhotPix, 2) // Storage Container for Pedestal information of one pixel in units of photons
35};
36
37#endif
38
Note: See TracBrowser for help on using the repository browser.