Skip to content

Commit 21bb7f4

Browse files
committed
GPU Workflow: Don't load ITS geometry when ITS is not used
1 parent cd8e576 commit 21bb7f4

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

GPU/Workflow/src/GPUWorkflowSpec.cxx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
613613
auto lockDecodeInput = std::make_unique<std::lock_guard<std::mutex>>(mPipeline->mutexDecodeInput);
614614

615615
GRPGeomHelper::instance().checkUpdates(pc);
616-
if (pc.inputs().getPos("itsTGeo") >= 0) {
616+
if (mSpecConfig.runITSTracking && pc.inputs().getPos("itsTGeo") >= 0) {
617617
pc.inputs().get<o2::its::GeometryTGeo*>("itsTGeo");
618618
}
619619
if (GRPGeomHelper::instance().getGRPECS()->isDetReadOut(o2::detectors::DetID::TPC) && mConfParam->tpcTriggeredMode ^ !GRPGeomHelper::instance().getGRPECS()->isDetContinuousReadOut(o2::detectors::DetID::TPC)) {
@@ -1045,7 +1045,7 @@ void GPURecoWorkflowSpec::doCalibUpdates(o2::framework::ProcessingContext& pc, c
10451045
mGRPGeomUpdated = false;
10461046
needCalibUpdate = true;
10471047

1048-
if (!mITSGeometryCreated) {
1048+
if (mSpecConfig.runITSTracking && !mITSGeometryCreated) {
10491049
o2::its::GeometryTGeo* geom = o2::its::GeometryTGeo::Instance();
10501050
geom->fillMatrixCache(o2::math_utils::bit2Mask(o2::math_utils::TransformType::T2L, o2::math_utils::TransformType::T2GRot, o2::math_utils::TransformType::T2G));
10511051
mITSGeometryCreated = true;
@@ -1078,15 +1078,13 @@ void GPURecoWorkflowSpec::doCalibUpdates(o2::framework::ProcessingContext& pc, c
10781078
}
10791079
mMatLUTCreated = true;
10801080
}
1081-
if (!mTRDGeometryCreated) {
1082-
if (mSpecConfig.readTRDtracklets) {
1083-
auto gm = o2::trd::Geometry::instance();
1084-
gm->createPadPlaneArray();
1085-
gm->createClusterMatrixArray();
1086-
mTRDGeometry = std::make_unique<o2::trd::GeometryFlat>(*gm);
1087-
newCalibObjects.trdGeometry = mConfig->configCalib.trdGeometry = mTRDGeometry.get();
1088-
LOG(info) << "Loaded TRD geometry";
1089-
}
1081+
if (mSpecConfig.readTRDtracklets && !mTRDGeometryCreated) {
1082+
auto gm = o2::trd::Geometry::instance();
1083+
gm->createPadPlaneArray();
1084+
gm->createClusterMatrixArray();
1085+
mTRDGeometry = std::make_unique<o2::trd::GeometryFlat>(*gm);
1086+
newCalibObjects.trdGeometry = mConfig->configCalib.trdGeometry = mTRDGeometry.get();
1087+
LOG(info) << "Loaded TRD geometry";
10901088
mTRDGeometryCreated = true;
10911089
}
10921090
}

0 commit comments

Comments
 (0)