Changeset 6151 for trunk


Ignore:
Timestamp:
01/31/05 16:14:26 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6150 r6151  
    271271  // Shift the start slice to the left:
    272272  //
    273   if (higainfirst > fHiGainFirst + fOffsetLeftFromPeak)
     273  if (higainfirst >= fHiGainFirst + fOffsetLeftFromPeak)
    274274    fHiGainFirst = higainfirst - fOffsetLeftFromPeak;
    275275  else
     
    279279  // Shift the last slice to the right:
    280280  //
    281   if (higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain < hiGainLastsave)
     281  if (higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain <= hiGainLastsave)
    282282    fHiGainLast  = higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain;
    283283  else
     
    285285     
    286286
    287   if ( fHiGainFirst+(Int_t)fOffsetLoGain > fLoGainFirst )
     287  if ( fHiGainFirst+(Int_t)fOffsetLoGain >= fLoGainFirst )
    288288    fLoGainFirst = fHiGainFirst + (Int_t)fOffsetLoGain;
    289289  else
     
    400400
    401401  if (fHiGainOutOfRangeLeft > 0)
    402     *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeLeft*100/GetNumExecutions() << "% ranging out of high-gain window to the left!" << endl;
     402    *fLog << warn << GetDescriptor() << ": " << Form("%4.2f",((Float_t)fHiGainOutOfRangeLeft*100)/GetNumExecutions())
     403          << "% ranging out of high-gain window to the left!" << endl;
    403404  if (fHiGainOutOfRangeRight > 0)
    404     *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeRight*100/GetNumExecutions() << "% ranging out of high-gain window to the right!" << endl;
     405    *fLog << warn << GetDescriptor() << ": " << Form("%4.2f",((Float_t)fHiGainOutOfRangeRight*100/GetNumExecutions())
     406          << "% ranging out of high-gain window to the right!" << endl;
    405407  if (fLoGainOutOfRangeLeft > 0)
    406     *fLog << warn << GetDescriptor() << ": " << fLoGainOutOfRangeLeft*100/GetNumExecutions() << "% ranging out of low-gain window to the left!" << endl;
     408    *fLog << warn << GetDescriptor() << ": " << Form("%4.2f",((Float_t)fLoGainOutOfRangeLeft*100/GetNumExecutions())
     409          << "% ranging out of low-gain window to the left!" << endl;
    407410  if (fHiGainOutOfRangeRight > 0)
    408     *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeRight*100/GetNumExecutions() << "% ranging out of high-gain window to the right!" << endl;
     411    *fLog << warn << GetDescriptor() << ": " << Form("%4.2f",((Float_t)fHiGainOutOfRangeRight*100/GetNumExecutions())
     412          << "% ranging out of high-gain window to the right!" << endl;
    409413
    410414 
Note: See TracChangeset for help on using the changeset viewer.