Ignore:
Timestamp:
01/21/05 13:39:16 (20 years ago)
Author:
mazin
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
3 edited

Legend:

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

    r5734 r5930  
    195195    if (IsA()==MExtractTime::Class())
    196196        *fLog << GetDescriptor() << ":" << endl;
    197     *fLog << " Offset Lo-Gain: " << fOffsetLoGain << endl;
     197    *fLog << " Offset Lo-Gain:     " << fOffsetLoGain << endl;
    198198    MExtractor::Print(o);
    199199}
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r5929 r5930  
    8686
    8787const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8;
    88 const Byte_t  MExtractTimeAndCharge::fgMaxBinContentLimit = 100;
     88const Byte_t  MExtractTimeAndCharge::fgLoGainSwitch = 100;
    8989// --------------------------------------------------------------------------
    9090//
     
    9595// - fWindowSizeHiGain and fWindowSizeLoGain to 0
    9696// - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain
    97 // - fMaxBinContentLimt to fgMaxBinContentLimit
     97// - fLoGainSwitch     to fgLoGainSwitch
    9898//
    9999MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title)
     
    104104
    105105    SetLoGainStartShift();
    106     SetMaxBinContentLimit();
     106    SetLoGainSwitch();
    107107}
    108108
     
    187187
    188188      // Initialize fMaxBinContent for the case, it gets not set by the derived class
    189       fMaxBinContent = fMaxBinContentLimit + 1;
     189      fMaxBinContent = fLoGainSwitch + 1;
    190190
    191191      const Int_t pixidx = pixel.GetPixelId();
     
    212212      // Adapt the low-gain extraction range from the obtained high-gain time
    213213      //
    214       if (pixel.HasLoGain() && (fMaxBinContent > fMaxBinContentLimit) )
     214      if (pixel.HasLoGain() && (fMaxBinContent > fLoGainSwitch) )
    215215      {
    216216          deltasumlo  = 0; // make logain of MExtractedSignalPix valid
     
    273273    }
    274274
    275     if (IsEnvDefined(env, prefix, "MaxBinContentLimit", print))
     275    if (IsEnvDefined(env, prefix, "LoGainSwitch", print))
    276276    {
    277         fMaxBinContentLimit = GetEnvValue(env, prefix, "MaxBinContentLimit", fMaxBinContentLimit);
     277        fLoGainSwitch = GetEnvValue(env, prefix, "LoGainSwitch", fLoGainSwitch);
    278278        rc = kTRUE;
    279279    }
     
    296296 
    297297  *fLog << " LoGainStartShift:   " << fLoGainStartShift << endl;
    298   *fLog << " MaxBinContentLimit: " << (Int_t)fMaxBinContentLimit << endl;
     298  *fLog << " LoGainSwitch:       " << (Int_t)fLoGainSwitch << endl;
    299299  MExtractTime::Print(o);
    300300}
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h

    r5918 r5930  
    1212
    1313  static const Float_t fgLoGainStartShift;   // Default for fLoGainStartShift (now set to: -2.8)
    14   static const Byte_t  fgMaxBinContentLimit; // Default for fMaxBinContentLimit (now set to: 100)
     14  static const Byte_t  fgLoGainSwitch; // Default for fLoGainSwitch (now set to: 100)
    1515 
    1616  Byte_t  fLoGainFirstSave;       //! Temporary variable to store the original position of low-gain start slice
    1717  Float_t fLoGainStartShift;      // Shift to start searching the low-gain signal obtained from the high-gain times.
    1818
    19   Byte_t  fMaxBinContentLimit;    // Limit for max. bin content before the low-gain gets extracted
     19  Byte_t  fLoGainSwitch;    // Limit for max. bin content before the low-gain gets extracted
    2020
    2121protected:
     
    3636  MExtractTimeAndCharge(const char *name=NULL, const char *title=NULL);
    3737 
    38   Int_t  GetWindowSizeHiGain  () const { return fWindowSizeHiGain;   }
    39   Int_t  GetWindowSizeLoGain  () const { return fWindowSizeLoGain;   }
    40   Byte_t GetMaxBinContentLimit() const { return fMaxBinContentLimit; }
     38  Int_t  GetWindowSizeHiGain  () const { return fWindowSizeHiGain; }
     39  Int_t  GetWindowSizeLoGain  () const { return fWindowSizeLoGain; }
     40  Byte_t GetLoGainSwitch      () const { return fLoGainSwitch;    }
    4141
    4242  void Print(Option_t *o="") const;
    4343 
    44   void SetLoGainStartShift( const Float_t f=fgLoGainStartShift )  { fLoGainStartShift = f + fOffsetLoGain;  }
    45   void SetMaxBinContentLimit( const Byte_t i=fgMaxBinContentLimit ) { fMaxBinContentLimit = i; }
     44  void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) { fLoGainStartShift = f + fOffsetLoGain;  }
     45  void SetLoGainSwitch    ( const Byte_t  i=fgLoGainSwitch     ) { fLoGainSwitch    = i; }
    4646
    4747  virtual void SetWindowSize(Int_t windowh, Int_t windowl) { fWindowSizeHiGain = windowh;
Note: See TracChangeset for help on using the changeset viewer.