Ignore:
Timestamp:
07/14/04 13:43:54 (20 years ago)
Author:
hbartko
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeHighestIntegral.cc

    r3913 r4371  
    204204        {
    205205          max = sum;
    206           ptrmax = p;
     206          ptrmax = p+1;
    207207        }
    208208    }
     
    225225  const Float_t pedsubtimesignalsum = timesignalsum - timesum*pedes;
    226226
    227   time      = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum : 1;
     227  time      = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum  + Float_t(fHiGainFirst): 1;
    228228  deltatime = pedsubsum != 0 ? pedrms / pedsubsum * sqrt(timesquaredsum - fHiGainWindowSize*time) : 1;
    229229}
     
    272272        {
    273273          max = sum;
    274           ptrmax = p;
     274          ptrmax = p+1;
    275275        }
    276276    }
     
    293293  const Float_t pedsubtimesignalsum = timesignalsum - timesum*pedes;
    294294
    295   time      = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum : 1;
     295  time      = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum  + Float_t(fLoGainFirst) : 1;
    296296  deltatime = pedsubsum != 0 ? pedrms / pedsubsum * sqrt(timesquaredsum - fLoGainWindowSize*time) : 1;
    297297}
Note: See TracChangeset for help on using the changeset viewer.