Ignore:
Timestamp:
01/24/05 15:45:53 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5969 r5970  
    246246
    247247  Int_t range = fHiGainLast - fHiGainFirst + 1;
    248   Int_t  maxpos = 0;
    249248 
    250249  const Byte_t *end = ptr + range;
    251250  Byte_t *p     = ptr;
    252   Byte_t max    = 0;
    253251
    254252  //
     
    270268      *sample++ = (Float_t)*p - pedmean[(ids++ + abflag) & 0x1];
    271269
    272       if (*p > max)
    273         {
    274           max    = *p;
    275           maxpos =  p-ptr;
    276         }
    277 
    278270      if (*p > fMaxBinContent)
    279271        fMaxBinContent = *p;
     
    294286          *sample++ = (Float_t)*logain - pedmean[(ids++ + abflag) & 0x1];
    295287
    296           if (*logain > max)
    297             {
    298               max    = *logain;
    299               maxpos =  range;
    300             }
    301          
    302288          if (*logain > fMaxBinContent)
    303289            fMaxBinContent = *logain;
Note: See TracChangeset for help on using the changeset viewer.