Changeset 5992
- Timestamp:
 - 01/25/05 14:11:07 (21 years ago)
 - File:
 - 
      
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5980 r5992 249 249 const Byte_t *end = ptr + range; 250 250 Byte_t *p = ptr; 251 Byte_t maxpos = 0; 251 252 252 253 // … … 258 259 const Float_t pedmean[2] = { pedes + ABoffs, pedes - ABoffs }; 259 260 261 range += fHiLoLast; 260 262 fMaxBinContent = 0; 261 263 // … … 269 271 270 272 if (*p > fMaxBinContent) 271 fMaxBinContent = *p; 273 { 274 maxpos = p-ptr; 275 if (maxpos > 1 && maxpos < (range - fWindowSizeHiGain + 1)) 276 fMaxBinContent = *p; 277 } 272 278 273 279 if (*p++ >= fSaturationLimit) … … 286 292 *sample++ = (Float_t)*logain - pedmean[(ids++ + abflag) & 0x1]; 287 293 288 if (*logain > fMaxBinContent)289 fMaxBinContent = *logain;290 291 294 if (*logain++ >= fSaturationLimit) 292 295 if (!sat) 293 296 sat = ids-4; 294 295 range++;296 297 } 297 298 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  