Changeset 5930 for trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
- Timestamp:
- 01/21/05 13:39:16 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5929 r5930 86 86 87 87 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8; 88 const Byte_t MExtractTimeAndCharge::fg MaxBinContentLimit= 100;88 const Byte_t MExtractTimeAndCharge::fgLoGainSwitch = 100; 89 89 // -------------------------------------------------------------------------- 90 90 // … … 95 95 // - fWindowSizeHiGain and fWindowSizeLoGain to 0 96 96 // - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain 97 // - f MaxBinContentLimt to fgMaxBinContentLimit97 // - fLoGainSwitch to fgLoGainSwitch 98 98 // 99 99 MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title) … … 104 104 105 105 SetLoGainStartShift(); 106 Set MaxBinContentLimit();106 SetLoGainSwitch(); 107 107 } 108 108 … … 187 187 188 188 // Initialize fMaxBinContent for the case, it gets not set by the derived class 189 fMaxBinContent = f MaxBinContentLimit+ 1;189 fMaxBinContent = fLoGainSwitch + 1; 190 190 191 191 const Int_t pixidx = pixel.GetPixelId(); … … 212 212 // Adapt the low-gain extraction range from the obtained high-gain time 213 213 // 214 if (pixel.HasLoGain() && (fMaxBinContent > f MaxBinContentLimit) )214 if (pixel.HasLoGain() && (fMaxBinContent > fLoGainSwitch) ) 215 215 { 216 216 deltasumlo = 0; // make logain of MExtractedSignalPix valid … … 273 273 } 274 274 275 if (IsEnvDefined(env, prefix, " MaxBinContentLimit", print))275 if (IsEnvDefined(env, prefix, "LoGainSwitch", print)) 276 276 { 277 f MaxBinContentLimit = GetEnvValue(env, prefix, "MaxBinContentLimit", fMaxBinContentLimit);277 fLoGainSwitch = GetEnvValue(env, prefix, "LoGainSwitch", fLoGainSwitch); 278 278 rc = kTRUE; 279 279 } … … 296 296 297 297 *fLog << " LoGainStartShift: " << fLoGainStartShift << endl; 298 *fLog << " MaxBinContentLimit: " << (Int_t)fMaxBinContentLimit<< endl;298 *fLog << " LoGainSwitch: " << (Int_t)fLoGainSwitch << endl; 299 299 MExtractTime::Print(o); 300 300 }
Note:
See TracChangeset
for help on using the changeset viewer.