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

Last change on this file since 2193 was 1540, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.2 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 fMean; // mean value of pedestal (PMT offset)
12 Float_t fSigma; // sigma (standard deviation) of pedestal
13 Float_t fMeanRms; // root mean square of pedestal
14 Float_t fSigmaRms; // root mean sqare of sigma of the pedestal
15
16public:
17 MPedestalPix();
18
19 void Clear(Option_t *o="");
20
21 Float_t GetMean() const { return fMean; }
22 Float_t GetSigma() const { return fSigma; }
23 Float_t GetMeanRms() const { return fMeanRms; }
24 Float_t GetSigmaRms() const { return fSigmaRms; }
25
26 void SetMean(Float_t f) { fMean = f; }
27 void SetSigma(Float_t f) { fSigma = f; }
28 void SetMeanRms(Float_t f) { fMeanRms = f; }
29 void SetSigmaRms(Float_t f) { fSigmaRms = f; }
30
31 void SetPedestal(Float_t m, Float_t s) { fMean = m; fSigma = s; }
32 void SetPedestalRms(Float_t m, Float_t s) { fMeanRms = m; fSigmaRms = s; }
33
34 Bool_t IsValid() const { return fMean>=0||fSigma>=0||fMeanRms>=0||fSigmaRms>=0; }
35
36 ClassDef(MPedestalPix, 1) // Storage Container for Pedestal information of one pixel
37};
38
39#endif
40
Note: See TracBrowser for help on using the repository browser.