Changeset 5242 for trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
- Timestamp:
- 10/12/04 13:50:46 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5241 r5242 73 73 using namespace std; 74 74 75 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8; 76 // -------------------------------------------------------------------------- 77 // 78 // Default constructor. 79 // 80 // Sets: 81 // - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain 82 // 83 MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title) 84 { 85 86 fName = name ? name : "MExtractTimeAndCharge"; 87 fTitle = title ? title : "Base class for signal and time extractors"; 88 89 SetLoGainStartShift(); 90 } 91 75 92 // -------------------------------------------------------------------------- 76 93 // … … 191 208 { 192 209 fLoGainFirstSave = fLoGainFirst; 193 fLoGainFirst = (Int_t)(timehi+f OffsetLoGain-3.);210 fLoGainFirst = (Int_t)(timehi+fLoGainStartShift); 194 211 fLoGainFirst = fLoGainFirst < fLoGainFirstSave ? fLoGainFirstSave : fLoGainFirst; 195 212 … … 223 240 } 224 241 242 // -------------------------------------------------------------------------- 243 // 244 // In addition to the resources of the base-class MExtractor: 245 // MJPedestal.MExtractor.LoGainStartShift: -2.8 246 // 247 Int_t MExtractTimeAndCharge::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 248 { 249 Bool_t rc = kFALSE; 250 251 if (IsEnvDefined(env, prefix, "LoGainStartShift", print)) 252 { 253 fLoGainStartShift = GetEnvValue(env, prefix, "LoGainStartShift", fLoGainStartShift); 254 rc = kTRUE; 255 } 256 257 258 return MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc; 259 }
Note:
See TracChangeset
for help on using the changeset viewer.