- Timestamp:
- 03/04/07 13:25:16 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc
r8357 r8362 362 362 Int_t sat1 = fHiGainLast; // Last slice to extract and last saturating slice 363 363 364 Int_t maxcont;364 UInt_t maxcont; 365 365 Int_t maxpos = fSignal->GetMax(idx, sat0, sat1, maxcont); 366 366 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r8358 r8362 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.6 3 2007-03-03 22:46:10tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.64 2007-03-04 13:25:07 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 59 59 // - Byte_t fMaxBinContent; 60 60 // 61 // Class Version 4: 62 // ---------------- 63 // - Byte_t fLoGainSwitch 64 // + UInt_t fLoGainSwitch 65 // 61 66 // 62 67 // Input Containers: … … 100 105 101 106 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.5; 102 const Byte_t MExtractTimeAndCharge::fgLoGainSwitch = 120;107 const UInt_t MExtractTimeAndCharge::fgLoGainSwitch = 120; 103 108 104 109 // -------------------------------------------------------------------------- … … 226 231 Int_t sathi1 = fHiGainLast; // Last slice to extract and last saturating slice 227 232 228 Int_t maxcont;233 UInt_t maxcont; 229 234 Int_t maxposhi = fSignal->GetMax(pixidx, sathi0, sathi1, maxcont); 230 235 // Would it be better to take lastsat-firstsat? … … 334 339 335 340 // Would it be better to take lastsat-firstsat? 336 Int_t maxlo;341 UInt_t maxlo; 337 342 Int_t maxposlo = fSignal->GetMax(pixidx, satlo0, satlo1, maxlo); 338 343 numsatlo = fSignal->GetSaturation(pixidx, fSaturationLimit, satlo0, satlo1); … … 420 425 if (IsEnvDefined(env, prefix, "LoGainSwitch", print)) 421 426 { 422 fLoGainSwitch = GetEnvValue(env, prefix, "LoGainSwitch", fLoGainSwitch);427 fLoGainSwitch = GetEnvValue(env, prefix, "LoGainSwitch", (Int_t)fLoGainSwitch); 423 428 rc = kTRUE; 424 429 } … … 435 440 *fLog << dec; 436 441 *fLog << " LoGainStartShift: " << fLoGainStartShift << endl; 437 *fLog << " LoGainSwitch: " << (Int_t)fLoGainSwitch << endl;442 *fLog << " LoGainSwitch: " << fLoGainSwitch << endl; 438 443 } 439 444 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r8304 r8362 12 12 private: 13 13 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) 15 15 16 16 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 extracted17 UInt_t fLoGainSwitch; // Limit for max. bin content before the low-gain gets extracted 18 18 19 19 protected: … … 33 33 Int_t GetWindowSizeLoGain () const { return fWindowSizeLoGain; } 34 34 Float_t GetLoGainStartShift () const { return fLoGainStartShift; } 35 Byte_t GetLoGainSwitch () const { return fLoGainSwitch; }35 UInt_t GetLoGainSwitch () const { return fLoGainSwitch; } 36 36 37 37 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; } 39 39 40 40 virtual void SetWindowSize(Int_t windowh, Int_t windowl) { fWindowSizeHiGain = windowh; fWindowSizeLoGain = windowl; } … … 56 56 void Print(Option_t *o="") const; //*MENU* 57 57 58 ClassDef(MExtractTimeAndCharge, 3) // Time And Charge Extractor Base Class58 ClassDef(MExtractTimeAndCharge, 4) // Time And Charge Extractor Base Class 59 59 }; 60 60 61 61 #endif 62 63 64
Note:
See TracChangeset
for help on using the changeset viewer.