File tree Expand file tree Collapse file tree
Common/TableProducer/Converters Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,14 +116,19 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
116116 auto workflow = WorkflowSpec{};
117117 // Check if 'aod-metadata-tables' option is available in the config context
118118 if (cfgc.options ().hasOption (" aod-metadata-tables" )) {
119+ LOG (debug) << " 'aod-metadata-tables' option found in the config context, checking for existing tables" ;
119120 // Get the list of tables from the config context
120121 const std::vector<std::string> tables = cfgc.options ().get <std::vector<std::string>>(" aod-metadata-tables" );
121122 // If the table is already found, do not add the converter and spawner
122123 if (std::find (tables.begin (), tables.end (), " O2trackextra_002" ) == tables.end ()) {
124+ LOG (debug) << " Adding TracksExtraV002Converter and TracksExtraSpawner to the workflow" ;
123125 workflow.push_back (adaptAnalysisTask<TracksExtraV002Converter>(cfgc));
124126 workflow.push_back (adaptAnalysisTask<TracksExtraSpawner>(cfgc));
127+ } else {
128+ LOG (debug) << " Table O2trackextra_002 already found, not adding converter and spawner" ;
125129 }
126130 } else {
131+ LOG (debug) << " 'aod-metadata-tables' option not found in the config context, adding converter and spawner by default" ;
127132 workflow.push_back (adaptAnalysisTask<TracksExtraV002Converter>(cfgc));
128133 workflow.push_back (adaptAnalysisTask<TracksExtraSpawner>(cfgc));
129134 }
You can’t perform that action at this time.
0 commit comments