Changeset 2646 for trunk/MagicSoft/Mars
- Timestamp:
- 12/11/03 14:36:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc
r2642 r2646 57 57 // 58 58 MExtractSignal::MExtractSignal(const char *name, const char *title) 59 : fBefore(2), fAfter(4), fSaturationLimit(254), fConversionHiLo(10.) 59 : fNumHiGainSamples(0), fNumLoGainSamples(0), 60 fSqrtHiGainSamples(0), fSqrtLoGainSamples(0), 61 fBefore(2), fAfter(4), 62 fSaturationLimit(254), fConversionHiLo(10.) 60 63 { 61 64 … … 174 177 const Float_t pedes = ped.GetPedestal(); 175 178 const Float_t pedrms = ped.GetPedestalRms(); 179 176 180 177 181 if (max-3 < ptr) … … 245 249 } /* while (pixel.Next()) */ 246 250 247 248 251 fSignals->SetNumUsedFADCSlices(fNumHiGainSamples,fNumLoGainSamples); 249 252 fSignals->SetReadyToSave(); -
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r2629 r2646 208 208 Float_t MPedCalcPedRun::CalcHiGainRms(Byte_t *ptr, const Byte_t *end, Float_t higainped) const 209 209 { 210 Float_t val=0; 211 Float_t val2=0; 210 212 Float_t rms = 0; 211 213 Byte_t EvenNumSamples=(fNumHiGainSamples/2*2==fNumHiGainSamples) ? fNumHiGainSamples:fNumHiGainSamples-1; … … 218 220 } while (++ptr != end); 219 221 220 return sqrt(rms/ EvenNumSamples);222 return sqrt(rms/(EvenNumSamples-1)); 221 223 } 222 224
Note:
See TracChangeset
for help on using the changeset viewer.