Changeset 5970
- Timestamp:
 - 01/24/05 15:45:53 (21 years ago)
 - File:
 - 
      
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5969 r5970 246 246 247 247 Int_t range = fHiGainLast - fHiGainFirst + 1; 248 Int_t maxpos = 0;249 248 250 249 const Byte_t *end = ptr + range; 251 250 Byte_t *p = ptr; 252 Byte_t max = 0;253 251 254 252 // … … 270 268 *sample++ = (Float_t)*p - pedmean[(ids++ + abflag) & 0x1]; 271 269 272 if (*p > max)273 {274 max = *p;275 maxpos = p-ptr;276 }277 278 270 if (*p > fMaxBinContent) 279 271 fMaxBinContent = *p; … … 294 286 *sample++ = (Float_t)*logain - pedmean[(ids++ + abflag) & 0x1]; 295 287 296 if (*logain > max)297 {298 max = *logain;299 maxpos = range;300 }301 302 288 if (*logain > fMaxBinContent) 303 289 fMaxBinContent = *logain;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  