diff --git a/GPU/Workflow/src/GPUWorkflowSpec.cxx b/GPU/Workflow/src/GPUWorkflowSpec.cxx index 64d4543e96d03..22f65848c03ae 100644 --- a/GPU/Workflow/src/GPUWorkflowSpec.cxx +++ b/GPU/Workflow/src/GPUWorkflowSpec.cxx @@ -1001,8 +1001,8 @@ void GPURecoWorkflowSpec::doCalibUpdates(o2::framework::ProcessingContext& pc, c if (mAutoSolenoidBz) { newCalibValues.newSolenoidField = true; newCalibValues.solenoidField = mConfig->configGRP.solenoidBz = (5.00668f / 30000.f) * GRPGeomHelper::instance().getGRPMagField()->getL3Current(); + LOG(info) << "Updating solenoid field " << newCalibValues.solenoidField; } - LOG(info) << "Updating solenoid field " << newCalibValues.solenoidField; if (mAutoContinuousMaxTimeBin) { mConfig->configGRP.continuousMaxTimeBin = (mTFSettings->nHBFPerTF * o2::constants::lhc::LHCMaxBunches + 2 * o2::tpc::constants::LHCBCPERTIMEBIN - 2) / o2::tpc::constants::LHCBCPERTIMEBIN; newCalibValues.newContinuousMaxTimeBin = true; @@ -1012,6 +1012,9 @@ void GPURecoWorkflowSpec::doCalibUpdates(o2::framework::ProcessingContext& pc, c if (!mPropagatorInstanceCreated) { newCalibObjects.o2Propagator = mConfig->configCalib.o2Propagator = Propagator::Instance(); + if (mAutoSolenoidBz) { + Propagator::Instance()->setBz(newCalibValues.solenoidField); + } mPropagatorInstanceCreated = true; }