Changeset 6138 for trunk


Ignore:
Timestamp:
01/30/05 19:29:40 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

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

    r6089 r6138  
    395395      return;
    396396
    397   time = max_p + fTimeShiftHiGain /* this shifts the time to the start of the rising edge */
     397  time = max_p + fTimeShiftHiGain + (Float_t)fHiGainFirst /* this shifts the time to the start of the rising edge */
    398398      - ((Float_t)t_iter)/fBinningResolutionHiGain;
    399399
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc

    r6117 r6138  
    7777using namespace std;
    7878
    79 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainFirst             =  1;
    80 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainLast              = 15;
     79const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainFirst             =  0;
     80const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainLast              = 18;
    8181const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgLoGainFirst             =  3;
    8282const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgLoGainLast              = 14;
     
    230230  // Shift the start slice to the left:
    231231  //
    232   if (higainfirst > fOffsetLeftFromPeak)
     232  if (higainfirst > fHiGainFirst + fOffsetLeftFromPeak)
    233233    fHiGainFirst = higainfirst - fOffsetLeftFromPeak;
    234234  else
    235     *fLog << warn << " High Gain ranges out of limits to the left!!! " << endl;
     235    *fLog << warn << " High Gain ranges out of limits to the left!!! " << (Int_t)higainfirst << endl;
    236236
    237237  //
    238238  // Shift the last slice to the right:
    239239  //
    240   if (higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain > hiGainLastsave)
     240  if (higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain < hiGainLastsave)
    241241    fHiGainLast  = higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain;
    242242  else
    243     *fLog << warn << " High Gain ranges out of limits to the right!!! " << endl;
     243    *fLog << warn << " High Gain ranges out of limits to the right!!! " << (Int_t)higainfirst << endl;
     244     
    244245
    245246  if ( fHiGainFirst+(Int_t)fOffsetLoGain > fLoGainFirst )
    246247    fLoGainFirst = fHiGainFirst + (Int_t)fOffsetLoGain;
    247248  else
    248     *fLog << warn << " High Gain ranges out of limits to the left!!! " << endl;
     249    *fLog << inf << " High Gain ranges out of limits to the left!!! " << (Int_t)fHiGainFirst << endl;
    249250 
    250251  //
Note: See TracChangeset for help on using the changeset viewer.