Changeset 4556 for trunk/MagicSoft/Mars/mpedestal/MPedestalPix.cc
- Timestamp:
- 08/10/04 10:35:48 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedestalPix.cc
r4404 r4556 17 17 ! 18 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Markus Gaug 04/2004 <mailto:markus@ifae.es>20 ! 19 ! Author(s): Markus Gaug 04/2004 <mailto:markus@ifae.es> 20 ! Author(s): Florian Goebel 06/2004 <mailto:fgoebel@mppmu.mpg.de> 21 21 ! 22 22 ! Copyright: MAGIC Software Development, 2000-2004 … … 26 26 27 27 ///////////////////////////////////////////////////////////////////////////// 28 // // 29 // MPedestalPix // 30 // // 31 // This is the storage container to hold informations about the pedestal // 32 // (offset) value of one Pixel (PMT). // 33 // // 34 // version 2: // 35 // ---------- // 36 // added: // 37 // fPedestalABoffset difference between pedestal mean of odd slices and // 38 // the total pedestal mean (fPedestal) // 39 // fNumEvents number of times, the Process was executed // 40 // (to estimate the error of pedestal) // 41 // // 28 // 29 // MPedestalPix 30 // 31 // This is the storage container to hold informations about the pedestal 32 // (offset) value of one Pixel (PMT). 33 // 34 // Float_t fPedestal: 35 // - mean value of pedestal (PMT offset) 36 // Float_t fPedestalRms: 37 // - root mean square / sigma / standard deviation of pedestal 38 // Float_t fPedestalABoffset: 39 // - the difference between odd slice pedestal mean and the 40 // total pedestal mean (fPedestal). For even slices pedestal 41 // use -fPedestalABoffset. 42 // UInt_t fNumEvents: 43 // - number of times, the Process was executed (to estimate the error 44 // of pedestal) 45 // 46 // version 2: 47 // ---------- 48 // added: 49 // fPedestalABoffset difference between pedestal mean of odd slices and 50 // the total pedestal mean (fPedestal) 51 // fNumEvents number of times, the Process was executed 52 // (to estimate the error of pedestal) 53 // 54 // version 3: 55 // ---------- 56 // - fValid removed 57 // 42 58 ///////////////////////////////////////////////////////////////////////////// 43 59 #include "MPedestalPix.h" … … 50 66 using namespace std; 51 67 68 // ------------------------------------------------------------------------ 69 // 70 // Default constructor. Calls Clear() 71 // 52 72 MPedestalPix::MPedestalPix() 53 : fValid(kTRUE)54 73 { 55 Clear();74 Clear(); 56 75 } 57 58 76 59 77 // ------------------------------------------------------------------------ … … 63 81 void MPedestalPix::Clear(Option_t *o) 64 82 { 65 fPedestal = -1.;66 fPedestalRms = -1.;67 fPedestalABoffset = -1.;68 fNumEvents =0;83 fPedestal = -1; 84 fPedestalRms = -1; 85 fPedestalABoffset = -1; 86 fNumEvents = 0; 69 87 } 70 88 89 // ------------------------------------------------------------------------ 90 // 91 // Set all values to 0 92 // 71 93 void MPedestalPix::InitUseHists() 72 94 { 73 74 fPedestal = 0.; 75 fPedestalRms = 0.; 76 fPedestalABoffset = 0.; 77 fNumEvents = 0; 95 fPedestal = 0; 96 fPedestalRms = 0; 97 fPedestalABoffset = 0; 98 fNumEvents = 0; 78 99 } 79 100 80 101 // ------------------------------------------------------------------------ 102 // 103 // Set fPedestal=m, fPedestalRms=r, fPedestalABoffset=offs, fNumEvents=n 104 // 81 105 void MPedestalPix::Set(Float_t m, Float_t r, Float_t offs, UInt_t n) 82 106 { 83 fPedestal = m;84 fPedestalRms = r;85 fPedestalABoffset = offs;86 fNumEvents = n;107 fPedestal = m; 108 fPedestalRms = r; 109 fPedestalABoffset = offs; 110 fNumEvents = n; 87 111 } 88 112 89 113 // ------------------------------------------------------------------------ 114 // 115 // Return kTRUE if pedestal AND pedestal rms is valid (>=0) 116 // 90 117 Bool_t MPedestalPix::IsValid() const 91 118 { 92 93 if (!fValid) 94 return kFALSE; 95 96 return fPedestal>=0||fPedestalRms>=0; 119 return fPedestal>=0 && fPedestalRms>=0; 97 120 }
Note:
See TracChangeset
for help on using the changeset viewer.