Changeset 4004 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/07/04 14:46:30 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4001 r4004  
    2525       rounding errors of the floats introduced significant errors in the
    2626       RMS!
     27     - introduced one condition about possible window sizes of 0.
    2728
    2829
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc

    r4001 r4004  
    346346{
    347347 
    348   Int_t lastdesired   = (Int_t)(fLoGainLast);
     348  Int_t lastdesired   = (Int_t)fLoGainLast;
    349349  Int_t lastavailable = (Int_t)fRunHeader->GetNumSamplesLoGain()-1;
    350350 
     
    469469      UInt_t sqr = 0;
    470470
    471       do
     471      if (fWindowSizeHiGain != 0)
    472472        {
    473           sum += *ptr;
    474           sqr += *ptr * *ptr;
     473          do
     474            {
     475              sum += *ptr;
     476              sqr += *ptr * *ptr;
     477            }
     478          while (++ptr != end);
    475479        }
    476       while (++ptr != end);
    477 
     480     
    478481      if (fWindowSizeLoGain != 0)
    479482        {
Note: See TracChangeset for help on using the changeset viewer.