Skip to content

Commit

Permalink
GPU Workflow: Bz field of CPU o2::propagator was not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Mar 7, 2024
1 parent 9707558 commit 96e0e44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GPU/Workflow/src/GPUWorkflowSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1002,8 +1002,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;
Expand All @@ -1013,6 +1013,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;
}

Expand Down

0 comments on commit 96e0e44

Please sign in to comment.