Changeset 4362 for trunk/MagicSoft
- Timestamp:
- 06/29/04 11:10:51 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4361 r4362 20 20 -*-*- END OF LINE -*-*- 21 21 22 2004/06/29: Thomas Bretz 23 24 * mpedestal/MPedCalcFromData.[h,cc] 25 - changed data member names according to coding rules 26 27 28 22 29 2004/06/25: Pepe Flix 23 30 … … 112 119 - make clone function virtual 113 120 114 * mjobs/MJCalibration.cc121 * mjobs/MJCalibration.cc 115 122 - adapted display for the datacheck 116 123 … … 130 137 * mjobs/MJPedestal.[h,cc] 131 138 - updated the data-check display 139 132 140 133 141 -
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromData.cc
r4356 r4362 62 62 AddToBranchList("fHiGainFadcSamples"); 63 63 64 SetRange(f gLoGainFirst, fgLoGainLast);64 SetRange(fLoGainFirst, fLoGainLast); 65 65 Clear(); 66 66 } … … 76 76 void MPedCalcFromData::SetLoRange(Byte_t lofirst, Byte_t lolast) 77 77 { 78 f gLoGainFirst = lofirst;79 f gLoGainLast = lolast;78 fLoGainFirst = lofirst; 79 fLoGainLast = lolast; 80 80 81 81 fWindowSizeLoGain = lolast - lofirst; … … 141 141 const UInt_t idx = pixel.GetPixelId(); 142 142 143 if ( (UInt_t)pixel.GetMaxHiGainSample() < HighGainThreshold ) {143 if ( (UInt_t)pixel.GetMaxHiGainSample() < fHiGainThreshold ) { 144 144 145 145 fEvtCounter[idx]++; … … 167 167 fSumx2[idx] += sqrsum; 168 168 169 if ( fEvtCounter[idx] == fgDump){169 if ((UInt_t)fEvtCounter[idx] == fDump){ 170 170 171 171 // Compute pedestals and rms from the sample 172 const ULong_t n = fWindowSizeLoGain*f gDump;172 const ULong_t n = fWindowSizeLoGain*fDump; 173 173 174 174 const Float_t sum = fSumx.At(idx); … … 177 177 178 178 // 1. Calculate the Variance of the sums: 179 Float_t higainVar = (sum2-sum*sum/f gDump)/(fgDump-1.);179 Float_t higainVar = (sum2-sum*sum/fDump)/(fDump-1.); 180 180 // 2. Scale the variance to the number of slices: 181 181 higainVar /= (Float_t)(fWindowSizeLoGain); … … 196 196 } 197 197 198 199 Int_t MPedCalcFromData::PostProcess()200 {201 return kTRUE;202 } -
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromData.h
r4356 r4362 22 22 #endif 23 23 24 #ifndef MARS_MTask25 #include "MTask.h"26 #endif27 28 24 #ifndef MARS_MExtractor 29 25 #include "MExtractor.h" … … 33 29 { 34 30 35 UInt_t f gDump; // Number for dumping.36 Byte_t f gLoGainFirst; // First FADC slice Lo-Gain (currently set to: 3)37 Byte_t f gLoGainLast; // Last FADC slice Lo-Gain (currently set to: 14)31 UInt_t fDump; // Number for dumping. 32 Byte_t fLoGainFirst; // First FADC slice Lo-Gain (currently set to: 3) 33 Byte_t fLoGainLast; // Last FADC slice Lo-Gain (currently set to: 14) 38 34 Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window 39 Byte_t HighGainThreshold;35 Byte_t fHiGainThreshold; 40 36 41 37 TArrayD fSumx; // sum of values … … 48 44 Bool_t ReInit ( MParList *pList ); 49 45 Int_t Process (); 50 Int_t PostProcess();51 46 52 47 public: … … 55 50 56 51 void Clear(const Option_t *o=""); 57 void SetDumpEvents(UInt_t dumpevents = 0){f gDump = dumpevents;}58 void Set HighGainThreshold(Byte_t Threshold = 0){HighGainThreshold = Threshold;}52 void SetDumpEvents(UInt_t dumpevents = 0){fDump = dumpevents;} 53 void SetfHiGainThreshold(Byte_t Threshold = 0){fHiGainThreshold = Threshold;} 59 54 void SetLoRange(Byte_t lofirst=0, Byte_t lolast=0); 60 55
Note:
See TracChangeset
for help on using the changeset viewer.