Ignore:
Timestamp:
05/10/05 12:13:12 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc

    r6963 r7005  
    7979      fIntensCharge(NULL), fIntensBlind(NULL), fIntensRelTime(NULL), fIntensBad(NULL),
    8080      fChargeCalc(NULL), fRelTimeCalc(NULL), fCalibrate(NULL),
    81       fNumEvents(0), fNumCam(0)
     81      fNumEvents(0), fNumCam(0), fUpdateWithFFactorMethod(kFALSE)
    8282{
    8383
     
    249249    fRelTimeCalc->Finalize();
    250250  if (fCalibrate)
    251     fCalibrate->UpdateConversionFactors((MCalibrationChargeCam*)fIntensCharge->GetCam());
     251      fCalibrate->UpdateConversionFactors(fUpdateWithFFactorMethod ? NULL :
     252                                          (MCalibrationChargeCam*)fIntensCharge->GetCam());
    252253
    253254  ReInitialize();
     
    324325Int_t MCalibCalcFromPast::PostProcess()
    325326{
    326   *fLog << "Number of Calibration Cams: " << fNumCam << endl;
     327  *fLog << inf << "Number of Calibration Cams: " << fNumCam << endl;
    327328  return kTRUE;
    328329 
    329330}
    330331
     332// --------------------------------------------------------------------------
     333//
     334// Read the setup from a TEnv, eg:
     335//   MCalibCalcFromPast.UpdateWithFFactorMethod: Off, On
     336//
     337Int_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.