Changeset 8362 for trunk


Ignore:
Timestamp:
03/04/07 13:25:16 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
3 edited

Legend:

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

    r8357 r8362  
    362362    Int_t sat1 = fHiGainLast;  // Last  slice to extract and last saturating slice
    363363
    364     Int_t maxcont;
     364    UInt_t maxcont;
    365365    Int_t maxpos = fSignal->GetMax(idx, sat0, sat1, maxcont);
    366366
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r8358 r8362  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.63 2007-03-03 22:46:10 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.64 2007-03-04 13:25:07 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    5959//   - Byte_t fMaxBinContent;
    6060//
     61// Class Version 4:
     62// ----------------
     63//   - Byte_t fLoGainSwitch
     64//   + UInt_t fLoGainSwitch
     65//
    6166//
    6267// Input Containers:
     
    100105
    101106const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.5;
    102 const Byte_t  MExtractTimeAndCharge::fgLoGainSwitch     =  120;
     107const UInt_t  MExtractTimeAndCharge::fgLoGainSwitch     =  120;
    103108
    104109// --------------------------------------------------------------------------
     
    226231        Int_t sathi1 = fHiGainLast;   // Last  slice to extract and last saturating slice
    227232
    228         Int_t maxcont;
     233        UInt_t maxcont;
    229234        Int_t maxposhi = fSignal->GetMax(pixidx, sathi0, sathi1, maxcont);
    230235        // Would it be better to take lastsat-firstsat?
     
    334339
    335340            // Would it be better to take lastsat-firstsat?
    336             Int_t maxlo;
     341            UInt_t maxlo;
    337342            Int_t maxposlo = fSignal->GetMax(pixidx, satlo0, satlo1, maxlo);
    338343            numsatlo = fSignal->GetSaturation(pixidx, fSaturationLimit, satlo0, satlo1);
     
    420425    if (IsEnvDefined(env, prefix, "LoGainSwitch", print))
    421426    {
    422         fLoGainSwitch = GetEnvValue(env, prefix, "LoGainSwitch", fLoGainSwitch);
     427        fLoGainSwitch = GetEnvValue(env, prefix, "LoGainSwitch", (Int_t)fLoGainSwitch);
    423428        rc = kTRUE;
    424429    }
     
    435440        *fLog << dec;
    436441        *fLog << " LoGainStartShift:   " << fLoGainStartShift << endl;
    437         *fLog << " LoGainSwitch:       " << (Int_t)fLoGainSwitch << endl;
     442        *fLog << " LoGainSwitch:       " << fLoGainSwitch << endl;
    438443    }
    439444}
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h

    r8304 r8362  
    1212private:
    1313  static const Float_t fgLoGainStartShift; //! Default for fLoGainStartShift (now set to: -2.8)
    14   static const Byte_t  fgLoGainSwitch;     //! Default for fLoGainSwitch     (now set to: 100)
     14  static const UInt_t  fgLoGainSwitch;     //! Default for fLoGainSwitch     (now set to: 100)
    1515 
    1616  Float_t fLoGainStartShift;      // Shift to start searching the low-gain signal obtained from the high-gain times.
    17   Byte_t  fLoGainSwitch;          // Limit for max. bin content before the low-gain gets extracted
     17  UInt_t  fLoGainSwitch;          // Limit for max. bin content before the low-gain gets extracted
    1818
    1919protected:
     
    3333  Int_t   GetWindowSizeLoGain  () const { return fWindowSizeLoGain; }
    3434  Float_t GetLoGainStartShift  () const { return fLoGainStartShift; }
    35   Byte_t  GetLoGainSwitch      () const { return fLoGainSwitch;     }
     35  UInt_t  GetLoGainSwitch      () const { return fLoGainSwitch;     }
    3636
    3737  void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) { fLoGainStartShift = f + fOffsetLoGain;  }
    38   void SetLoGainSwitch    ( const Byte_t  i=fgLoGainSwitch     ) { fLoGainSwitch     = i; }
     38  void SetLoGainSwitch    ( const UInt_t  i=fgLoGainSwitch     ) { fLoGainSwitch     = i; }
    3939
    4040  virtual void SetWindowSize(Int_t windowh, Int_t windowl) { fWindowSizeHiGain = windowh; fWindowSizeLoGain = windowl;  }
     
    5656  void Print(Option_t *o="") const; //*MENU*
    5757
    58   ClassDef(MExtractTimeAndCharge, 3)   // Time And Charge Extractor Base Class
     58  ClassDef(MExtractTimeAndCharge, 4)   // Time And Charge Extractor Base Class
    5959};
    6060
    6161#endif
    62 
    63 
    64 
Note: See TracChangeset for help on using the changeset viewer.