diff --git a/Detectors/AOD/src/AODProducerWorkflowSpec.cxx b/Detectors/AOD/src/AODProducerWorkflowSpec.cxx index 5db4f0d8f217d..7031011f43cc5 100644 --- a/Detectors/AOD/src/AODProducerWorkflowSpec.cxx +++ b/Detectors/AOD/src/AODProducerWorkflowSpec.cxx @@ -2558,6 +2558,9 @@ void AODProducerWorkflowDPL::finaliseCCDB(ConcreteDataMatcher& matcher, void* ob { // Note: strictly speaking, for Configurable params we don't need finaliseCCDB check, the singletons are updated at the CCDB fetcher level if (o2::base::GRPGeomHelper::instance().finaliseCCDB(matcher, obj)) { + if (matcher == ConcreteDataMatcher("GLO", "GRPMAGFIELD", 0)) { + o2::mch::TrackExtrap::setField(); + } return; } if (matcher == ConcreteDataMatcher("ITS", "ALPIDEPARAM", 0)) { diff --git a/Detectors/GlobalTrackingWorkflow/src/GlobalFwdMatchingSpec.cxx b/Detectors/GlobalTrackingWorkflow/src/GlobalFwdMatchingSpec.cxx index 683917d51b355..c4aa880f414c5 100644 --- a/Detectors/GlobalTrackingWorkflow/src/GlobalFwdMatchingSpec.cxx +++ b/Detectors/GlobalTrackingWorkflow/src/GlobalFwdMatchingSpec.cxx @@ -35,6 +35,7 @@ #include "TGeoGlobalMagField.h" #include "Field/MagneticField.h" #include "DetectorsBase/GRPGeomHelper.h" +#include "MCHTracking/TrackExtrap.h" using namespace o2::framework; using MCLabelsTr = gsl::span; @@ -116,6 +117,9 @@ void GlobalFwdMatchingDPL::endOfStream(EndOfStreamContext& ec) void GlobalFwdMatchingDPL::finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) { if (o2::base::GRPGeomHelper::instance().finaliseCCDB(matcher, obj)) { + if (matcher == ConcreteDataMatcher("GLO", "GRPMAGFIELD", 0)) { + o2::mch::TrackExtrap::setField(); + } return; } if (matcher == ConcreteDataMatcher("MFT", "CLUSDICT", 0)) {