Ignore:
Timestamp:
02/05/04 17:52:36 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc

    r3015 r3039  
    1919!   Author(s): Thomas Bretz 05/2001 <mailto:tbretz@astro.uni-wuerzburg.de>
    2020!   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>
    2223!
    2324!   Copyright: MAGIC Software Development, 2000-2004
     
    287288      // The new version:
    288289      //
    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
    291297      (*fPedestals)[pixid].Set(higainped, higainrms);
    292298
Note: See TracChangeset for help on using the changeset viewer.