Changeset 4371 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 07/14/04 13:43:54 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MArrivalTimeCalc2.cc
r4246 r4371 244 244 sat++; 245 245 246 pix.SetArrivalTime(timehi , deltatimehi, timelo, deltatimelo);246 pix.SetArrivalTime(timehi+ Float_t(fHiGainFirst), deltatimehi, timelo + Float_t(fLoGainFirst), deltatimelo); 247 247 pix.SetGainSaturation(sathi, sathi, satlo); 248 248 } -
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.