Changeset 5416 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/17/04 10:05:26 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5415 r5416  
    3939     - adapt the histogram ranges slightly because I have found high
    4040       intensity calibration events creating non desired overflows.
     41
     42   * msignal/MExtractTimeAndChargeSlidingWindow.cc
     43     - fixed a bug in the setting of the window which set always the
     44       default before.
    4145
    4246
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc

    r5374 r5416  
    150150{
    151151 
    152   const Byte_t availhirange = (fHiGainLast-fHiGainFirst+1) & ~1;
     152  fWindowSizeHiGain = windowh;
     153  fWindowSizeLoGain = windowl;
     154
     155  const Byte_t availhirange = fHiGainLast-fHiGainFirst+1;
    153156
    154157  if (fWindowSizeHiGain > availhirange)
     
    162165    }
    163166 
    164   if (fWindowSizeHiGain<2)
    165     {
    166       fWindowSizeHiGain = 2;
    167       *fLog << warn << GetDescriptor() << ": High Gain window size too small, set to two samples" << endl;
     167  if (fWindowSizeHiGain<1)
     168    {
     169      fWindowSizeHiGain = 1;
     170      *fLog << warn << GetDescriptor() << ": High Gain window size too small, set to one sample" << endl;
    168171    }
    169172 
    170173  if (fLoGainLast != 0 && fWindowSizeLoGain != 0)
    171174    {
    172       const Byte_t availlorange = (fLoGainLast-fLoGainFirst+1) & ~1;
     175      const Byte_t availlorange = fLoGainLast-fLoGainFirst+1;
    173176     
    174177      if (fWindowSizeLoGain > availlorange)
     
    180183                << ": Will set window size to: " << (int)availlorange << endl;
    181184          fWindowSizeLoGain = availlorange;
    182         }
    183      
    184       if (fWindowSizeLoGain<2)
    185         {
    186           fWindowSizeLoGain = 2;
    187           *fLog << warn << GetDescriptor() << ": Low Gain window size too small set to two samples" << endl;
    188185        }
    189186    }
Note: See TracChangeset for help on using the changeset viewer.