Skip to content

Commit

Permalink
configure MCH track extrapolation with magnetic field
Browse files Browse the repository at this point in the history
  • Loading branch information
pillot authored and shahor02 committed Aug 28, 2023
1 parent b1027d0 commit 68ea15c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Detectors/AOD/src/AODProducerWorkflowSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<const o2::MCCompLabel>;
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 68ea15c

Please sign in to comment.