source: tags/Mars-V0.8.6/mpedestal/MPedPhotPix.h

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