Changeset 7005 for trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
- Timestamp:
- 05/10/05 12:13:12 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
r6963 r7005 79 79 fIntensCharge(NULL), fIntensBlind(NULL), fIntensRelTime(NULL), fIntensBad(NULL), 80 80 fChargeCalc(NULL), fRelTimeCalc(NULL), fCalibrate(NULL), 81 fNumEvents(0), fNumCam(0) 81 fNumEvents(0), fNumCam(0), fUpdateWithFFactorMethod(kFALSE) 82 82 { 83 83 … … 249 249 fRelTimeCalc->Finalize(); 250 250 if (fCalibrate) 251 fCalibrate->UpdateConversionFactors((MCalibrationChargeCam*)fIntensCharge->GetCam()); 251 fCalibrate->UpdateConversionFactors(fUpdateWithFFactorMethod ? NULL : 252 (MCalibrationChargeCam*)fIntensCharge->GetCam()); 252 253 253 254 ReInitialize(); … … 324 325 Int_t MCalibCalcFromPast::PostProcess() 325 326 { 326 *fLog << "Number of Calibration Cams: " << fNumCam << endl;327 *fLog << inf << "Number of Calibration Cams: " << fNumCam << endl; 327 328 return kTRUE; 328 329 329 330 } 330 331 332 // -------------------------------------------------------------------------- 333 // 334 // Read the setup from a TEnv, eg: 335 // MCalibCalcFromPast.UpdateWithFFactorMethod: Off, On 336 // 337 Int_t MCalibCalcFromPast::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 338 { 339 Bool_t rc = kFALSE; 340 if (IsEnvDefined(env, prefix, "UpdateWithFFactorMethod", print)) 341 { 342 rc = kTRUE; 343 SetUpdateWithFFactorMethod(GetEnvValue(env, prefix, "UpdateWithFFactorMethod", fUpdateWithFFactorMethod)); 344 } 345 346 return rc; 347 }
Note:
See TracChangeset
for help on using the changeset viewer.