Changeset 5992


Ignore:
Timestamp:
01/25/05 14:11:07 (20 years ago)
Author:
mazin
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5980 r5992  
    249249  const Byte_t *end = ptr + range;
    250250  Byte_t *p     = ptr;
     251  Byte_t maxpos = 0;
    251252
    252253  //
     
    258259  const Float_t pedmean[2] = { pedes + ABoffs, pedes - ABoffs };
    259260
     261  range += fHiLoLast;
    260262  fMaxBinContent = 0;
    261263  //
     
    269271
    270272      if (*p > fMaxBinContent)
    271         fMaxBinContent = *p;
     273        {
     274          maxpos = p-ptr;
     275          if (maxpos > 1 && maxpos < (range - fWindowSizeHiGain + 1))
     276            fMaxBinContent = *p;
     277        }
    272278
    273279      if (*p++ >= fSaturationLimit)
     
    286292          *sample++ = (Float_t)*logain - pedmean[(ids++ + abflag) & 0x1];
    287293
    288           if (*logain > fMaxBinContent)
    289             fMaxBinContent = *logain;
    290 
    291294          if (*logain++ >= fSaturationLimit)
    292295            if (!sat)
    293296              sat = ids-4;
    294 
    295           range++;
    296297        }
    297298    }
Note: See TracChangeset for help on using the changeset viewer.