- Timestamp:
- 07/14/04 13:43:54 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeHighestIntegral.cc
r3913 r4371 204 204 { 205 205 max = sum; 206 ptrmax = p ;206 ptrmax = p+1; 207 207 } 208 208 } … … 225 225 const Float_t pedsubtimesignalsum = timesignalsum - timesum*pedes; 226 226 227 time = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum : 1;227 time = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum + Float_t(fHiGainFirst): 1; 228 228 deltatime = pedsubsum != 0 ? pedrms / pedsubsum * sqrt(timesquaredsum - fHiGainWindowSize*time) : 1; 229 229 } … … 272 272 { 273 273 max = sum; 274 ptrmax = p ;274 ptrmax = p+1; 275 275 } 276 276 } … … 293 293 const Float_t pedsubtimesignalsum = timesignalsum - timesum*pedes; 294 294 295 time = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum : 1;295 time = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum + Float_t(fLoGainFirst) : 1; 296 296 deltatime = pedsubsum != 0 ? pedrms / pedsubsum * sqrt(timesquaredsum - fLoGainWindowSize*time) : 1; 297 297 }
Note:
See TracChangeset
for help on using the changeset viewer.