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