Ignore:
Timestamp:
03/15/05 11:10:55 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
3 edited

Legend:

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

    r6798 r6820  
    8585using namespace std;
    8686
    87 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8;
     87const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -4.0;
    8888const Byte_t  MExtractTimeAndCharge::fgLoGainSwitch = 120;
    8989// --------------------------------------------------------------------------
     
    217217          fLoGainFirstSave = fLoGainFirst;
    218218          const Byte_t logainstart = sathi
    219             ? (sathi > (Int_t)fLoGainStartShift ? sathi + (Int_t)fLoGainStartShift : fLoGainFirst)
    220             : (Byte_t)(timehi + fLoGainStartShift);
     219            ? (sathi > (Int_t)(-fLoGainStartShift) ? sathi + (Int_t)fLoGainStartShift : fLoGainFirst)
     220            : (timehi+fLoGainStartShift > 0. ? (Byte_t)(timehi + fLoGainStartShift) : fLoGainFirst);
    221221          fLoGainFirst = logainstart > fLoGainFirstSave ? logainstart : fLoGainFirstSave;
    222222
  • trunk/MagicSoft/Mars/msignal/MExtractor.cc

    r6254 r6820  
    133133void MExtractor::SetRange(Byte_t hifirst, Byte_t hilast, Byte_t lofirst, Byte_t lolast)
    134134{
    135     fHiGainFirst = hifirst;
    136     fHiGainLast  = hilast;
    137 
    138     fLoGainFirst = lofirst;
    139     fLoGainLast  = lolast;
     135 
     136  Clear();
     137
     138  fHiGainFirst = hifirst;
     139  fHiGainLast  = hilast;
     140 
     141  fLoGainFirst = lofirst;
     142  fLoGainLast  = lolast;
    140143}
    141144
  • trunk/MagicSoft/Mars/msignal/MExtractor.h

    r5976 r6820  
    7272  MExtractor(const char *name=NULL, const char *title=NULL);
    7373 
     74  void Clear(Option_t *o="")
     75    {
     76      fHiGainFirst = fHiGainLast = fLoGainFirst = fLoGainLast = fHiLoLast = 0;
     77    }
     78
    7479  Byte_t  GetHiGainFirst()      const { return fHiGainFirst;      }
    7580  Byte_t  GetHiGainLast ()      const { return fHiGainLast ;      }
Note: See TracChangeset for help on using the changeset viewer.