Skip to content

Commit 80857e7

Browse files
committed
DPL Analysis: do not override error-handler reader for MC injected workflows
1 parent b20c426 commit 80857e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Framework/Core/src/ArrowSupport.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,10 @@ o2::framework::ServiceSpec ArrowSupport::arrowBackendSpec()
684684
workflow.erase(reader);
685685
} else {
686686
// load reader algorithm before deployment
687-
auto&& algo = PluginManager::loadAlgorithmFromPlugin("O2FrameworkAnalysisSupport", "ROOTFileReader", ctx);
688-
reader->algorithm = CommonDataProcessors::wrapWithTimesliceConsumption(algo);
687+
auto mctracks2aod = std::find_if(workflow.begin(), workflow.end(), [](auto const& x) { return x.name == "mctracks-to-aod"; });
688+
if (mctracks2aod == workflow.end()) { // add normal reader algorithm only if no on-the-fly generator is injected
689+
reader->algorithm = CommonDataProcessors::wrapWithTimesliceConsumption(PluginManager::loadAlgorithmFromPlugin("O2FrameworkAnalysisSupport", "ROOTFileReader", ctx));
690+
} // otherwise the algorithm was set in injectServiceDevices
689691
}
690692
}
691693

0 commit comments

Comments
 (0)