Changeset 4601 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 08/12/04 16:41:37 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r4586 r4601 302 302 // MJPedestal.MExtractor.SaturationLimit: 88 303 303 // 304 Bool_t MExtractor::ReadEnv(const TEnv &env, TString prefix, Bool_t print)304 Int_t MExtractor::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 305 305 { 306 306 Byte_t hf = fHiGainFirst; … … 309 309 Byte_t ll = fLoGainLast; 310 310 311 Bool_t rc = kFALSE; 312 311 313 if (IsEnvDefined(env, prefix, "HiGainFirst", print)) 314 { 312 315 hf = GetEnvValue(env, prefix, "HiGainFirst", hf); 316 rc = kTRUE; 317 } 313 318 if (IsEnvDefined(env, prefix, "LoGainFirst", print)) 319 { 314 320 lf = GetEnvValue(env, prefix, "LoGainFirst", lf); 321 rc = kTRUE; 322 } 315 323 316 324 if (IsEnvDefined(env, prefix, "HiGainLast", print)) 325 { 317 326 hl = GetEnvValue(env, prefix, "HiGainLast", hl); 327 rc = kTRUE; 328 } 318 329 if (IsEnvDefined(env, prefix, "LoGainLast", print)) 330 { 319 331 ll = GetEnvValue(env, prefix, "LoGainLast", ll); 332 rc = kTRUE; 333 } 320 334 321 335 SetRange(hf, hl, lf, ll); 322 336 323 337 if (IsEnvDefined(env, prefix, "SaturationLimit", print)) 338 { 324 339 SetSaturationLimit(GetEnvValue(env, prefix, "SaturationLimit", fSaturationLimit)); 325 326 return kTRUE; 327 } 340 rc = kTRUE; 341 } 342 343 return rc; 344 } -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r4586 r4601 55 55 Int_t Process(); 56 56 void StreamPrimitive(ofstream &out) const; 57 Bool_tReadEnv(const TEnv &env, TString prefix, Bool_t print);57 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 58 58 59 59 public:
Note:
See TracChangeset
for help on using the changeset viewer.