Ignore:
Timestamp:
02/03/05 10:42:15 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6166 r6229  
    271271  MRawEvtPixelIter pixel(fRawEvt);
    272272
    273   Int_t   sat;
    274   Byte_t  satpos;
     273  Int_t   sat        = 0;
     274  Byte_t  satpos     = 0;
    275275  ULong_t gsatpos    = 0;
    276276
    277277  Int_t   maxsumhi   = -1000000;
    278278  Int_t   numsat     = 0;
    279   Byte_t startslice;
     279  Byte_t  startslice = 0;
    280280
    281281  Byte_t hiGainFirstsave = fHiGainFirst;
     
    319319    fHiGainFirst = higainfirst - fOffsetLeftFromPeak;
    320320  else
    321     fHiGainOutOfRangeLeft++;
    322 
     321    {
     322      //      *fLog << err << (Int_t)higainfirst << "   " << (int)fHiGainFirst << "  " << (int)fOffsetLeftFromPeak << endl;     
     323      fHiGainOutOfRangeLeft++;
     324    }
     325 
    323326  //
    324327  // Shift the last slice to the right:
    325328  //
    326329  const Byte_t rlim = higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain;
    327   if (rlim <= hiGainLastsave+fHiLoLast)
    328     if (rlim > hiGainLastsave)
     330  if (rlim <= fHiGainLast+fHiLoLast)
     331    if (rlim > fHiGainLast)
    329332      fHiLoLast   = rlim - fHiGainLast;
    330333    else
     
    334337      }
    335338  else
    336     fHiGainOutOfRangeRight++;
    337      
    338 
     339    {
     340      fHiGainOutOfRangeRight++;
     341      //      *fLog << err << (Int_t)higainfirst << endl;
     342    }
     343 
    339344  const Byte_t llim = fHiGainFirst + (Int_t)fOffsetLoGain;
    340345  if ( llim >= fLoGainFirst )
     
    544549
    545550    MExtractTimeAndChargeDigitalFilter::Print(o);
    546     *fLog << " Offset from Peak left:   " << fOffsetLeftFromPeak   << endl;
    547     *fLog << " Offset from Peak right:  " << fOffsetRightFromPeak  << endl;
    548     *fLog << " Peak search window size: " << fPeakSearchWindowSize << endl;
     551    *fLog << " Offset from Peak left:   " << (int)fOffsetLeftFromPeak   << endl;
     552    *fLog << " Offset from Peak right:  " << (int)fOffsetRightFromPeak  << endl;
     553    *fLog << " Peak search window size: " << (int)fPeakSearchWindowSize << endl;
    549554    *fLog << " High Gain Failure limit: " << fHiGainFailureLimit << endl;
    550555    *fLog << " Low Gain Failure limit:  " << fLoGainFailureLimit << endl;
Note: See TracChangeset for help on using the changeset viewer.