- Timestamp:
- 01/20/05 18:49:08 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5917 r5918 86 86 87 87 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8; 88 const Int_tMExtractTimeAndCharge::fgMaxBinContentLimit = 100;88 const Byte_t MExtractTimeAndCharge::fgMaxBinContentLimit = 100; 89 89 // -------------------------------------------------------------------------- 90 90 // … … 211 211 // Adapt the low-gain extraction range from the obtained high-gain time 212 212 // 213 if (pixel.HasLoGain() && fMaxBinContent < fMaxBinContentLimit)213 if (pixel.HasLoGain() && (fMaxBinContent < fMaxBinContentLimit) ) 214 214 { 215 215 deltasumlo = 0; // make logain of MExtractedSignalPix valid -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r5917 r5918 12 12 13 13 static const Float_t fgLoGainStartShift; // Default for fLoGainStartShift (now set to: -2.8) 14 static const Int_tfgMaxBinContentLimit; // Default for fMaxBinContentLimit (now set to: 100)14 static const Byte_t fgMaxBinContentLimit; // Default for fMaxBinContentLimit (now set to: 100) 15 15 16 16 Byte_t fLoGainFirstSave; //! Temporary variable to store the original position of low-gain start slice 17 17 Float_t fLoGainStartShift; // Shift to start searching the low-gain signal obtained from the high-gain times. 18 18 19 Int_tfMaxBinContentLimit; // Limit for max. bin content before the low-gain gets extracted19 Byte_t fMaxBinContentLimit; // Limit for max. bin content before the low-gain gets extracted 20 20 21 21 protected: … … 24 24 Int_t fWindowSizeLoGain; // Window Size Low-Gain 25 25 26 Int_tfMaxBinContent; // Maximum bin content26 Byte_t fMaxBinContent; // Maximum bin content 27 27 28 28 Int_t PreProcess(MParList *pList); … … 36 36 MExtractTimeAndCharge(const char *name=NULL, const char *title=NULL); 37 37 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; } 41 41 42 42 void Print(Option_t *o="") const; 43 43 44 44 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; } 46 46 47 47 virtual void SetWindowSize(Int_t windowh, Int_t windowl) { fWindowSizeHiGain = windowh;
Note:
See TracChangeset
for help on using the changeset viewer.