Changeset 3039 for trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
- Timestamp:
- 02/05/04 17:52:36 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r3015 r3039 19 19 ! Author(s): Thomas Bretz 05/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 20 20 ! Author(s): Sebastian Commichau 12/2003 21 ! Author(s): Javier Rico 01/2004 21 ! Author(s): Javier Rico 01/2004 <mailto:jrico@ifae.es> 22 ! Author(s): Markus Gaug 01/2004 <mailto:markus@ifae.es> 22 23 ! 23 24 ! Copyright: MAGIC Software Development, 2000-2004 … … 287 288 // The new version: 288 289 // 289 const Float_t higainrms = TMath::Sqrt((sum2-sum*sum/nevts)/(nevts-1.)/(Float_t)fNumHiGainSamples); 290 290 // 1. Calculate the Variance of the sums: 291 Float_t higainVar = (sum2-sum*sum/nevts)/(nevts-1.); 292 // 2. Scale the variance to the number of slices: 293 higainVar /= (Float_t)fNumHiGainSamples; 294 // 3. Calculate the RMS from the Variance: 295 const Float_t higainrms = TMath::Sqrt(higainVar); 296 291 297 (*fPedestals)[pixid].Set(higainped, higainrms); 292 298
Note:
See TracChangeset
for help on using the changeset viewer.