Changeset 5918 for trunk


Ignore:
Timestamp:
01/20/05 18:49:08 (20 years ago)
Author:
mazin
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

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

    r5917 r5918  
    8686
    8787const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8;
    88 const Int_t   MExtractTimeAndCharge::fgMaxBinContentLimit = 100;
     88const Byte_t  MExtractTimeAndCharge::fgMaxBinContentLimit = 100;
    8989// --------------------------------------------------------------------------
    9090//
     
    211211      // Adapt the low-gain extraction range from the obtained high-gain time
    212212      //
    213       if (pixel.HasLoGain() && fMaxBinContent < fMaxBinContentLimit )
     213      if (pixel.HasLoGain() && (fMaxBinContent < fMaxBinContentLimit) )
    214214      {
    215215          deltasumlo  = 0; // make logain of MExtractedSignalPix valid
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h

    r5917 r5918  
    1212
    1313  static const Float_t fgLoGainStartShift;   // Default for fLoGainStartShift (now set to: -2.8)
    14   static const Int_t   fgMaxBinContentLimit; // Default for fMaxBinContentLimit (now set to: 100)
     14  static const Byte_t  fgMaxBinContentLimit; // Default for fMaxBinContentLimit (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   Int_t   fMaxBinContentLimit;    // Limit for max. bin content before the low-gain gets extracted
     19  Byte_t  fMaxBinContentLimit;    // Limit for max. bin content before the low-gain gets extracted
    2020
    2121protected:
     
    2424  Int_t  fWindowSizeLoGain;       //  Window Size Low-Gain
    2525
    26   Int_t fMaxBinContent;          //  Maximum bin content
     26  Byte_t fMaxBinContent;          //  Maximum bin content
    2727
    2828  Int_t  PreProcess(MParList *pList);
     
    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   Int_t GetMaxBinContentLimit() const { return fMaxBinContentLimit; }
     38  Int_t  GetWindowSizeHiGain  () const { return fWindowSizeHiGain;   }
     39  Int_t  GetWindowSizeLoGain  () const { return fWindowSizeLoGain;   }
     40  Byte_t GetMaxBinContentLimit() const { return fMaxBinContentLimit; }
    4141
    4242  void Print(Option_t *o="") const;
    4343 
    4444  void SetLoGainStartShift( const Float_t f=fgLoGainStartShift )  { fLoGainStartShift = f + fOffsetLoGain;  }
    45   void SetMaxBinContentLimit( const Int_t i=fgMaxBinContentLimit ) { fMaxBinContentLimit = i; }
     45  void SetMaxBinContentLimit( const Byte_t i=fgMaxBinContentLimit ) { fMaxBinContentLimit = i; }
    4646
    4747  virtual void SetWindowSize(Int_t windowh, Int_t windowl) { fWindowSizeHiGain = windowh;
Note: See TracChangeset for help on using the changeset viewer.