Skip to content

Commit 5e3310a

Browse files
ddobrigkalibuild
andauthored
[Common] Add disabling of track propagation if not needed (#12160)
Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
1 parent ec2cb6d commit 5e3310a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Common/Tools/TrackPropagationModule.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// or submit itself to any jurisdiction.
1111

1212
/// \file TrackPropagationModule.h
13-
/// \brief track propagation module functionality to be used in tasks
13+
/// \brief track propagation module functionality to be used in core services
1414
/// \author ALICE
1515

1616
#ifndef COMMON_TOOLS_TRACKPROPAGATIONMODULE_H_
@@ -73,6 +73,7 @@ class TrackPropagationModule
7373
}
7474

7575
// controls behaviour
76+
bool fillTracks = false;
7677
bool fillTracksCov = false;
7778
bool fillTracksDCA = false;
7879
bool fillTracksDCACov = false;
@@ -93,10 +94,15 @@ class TrackPropagationModule
9394
void init(TConfigurableGroup const& cGroup, THistoRegistry& registry, TInitContext& initContext)
9495
{
9596
// Checking if the tables are requested in the workflow and enabling them
97+
fillTracks = isTableRequiredInWorkflow(initContext, "Tracks");
9698
fillTracksCov = isTableRequiredInWorkflow(initContext, "TracksCov");
9799
fillTracksDCA = isTableRequiredInWorkflow(initContext, "TracksDCA");
98100
fillTracksDCACov = isTableRequiredInWorkflow(initContext, "TracksDCACov");
99101

102+
if (!fillTracks) {
103+
LOGF(info, "Track propagation to PV not required. Suppressing all further processing and logs.");
104+
}
105+
100106
/// TrackTuner initialization
101107
if (cGroup.useTrackTuner.value) {
102108
std::string outputStringParams = "";
@@ -129,6 +135,10 @@ class TrackPropagationModule
129135
template <bool isMc, typename TConfigurableGroup, typename TCCDBLoader, typename TCollisions, typename TTracks, typename TOutputGroup, typename THistoRegistry>
130136
void fillTrackTables(TConfigurableGroup const& cGroup, TCCDBLoader const& ccdbLoader, TCollisions const& collisions, TTracks const& tracks, TOutputGroup& cursors, THistoRegistry& registry)
131137
{
138+
if (!fillTracks) {
139+
return; // suppress everything
140+
}
141+
132142
if (fillTracksCov) {
133143
cursors.tracksParCovPropagated.reserve(tracks.size());
134144
cursors.tracksParCovExtensionPropagated.reserve(tracks.size());

0 commit comments

Comments
 (0)