From d2c347f1fa6abb1339d6bffc93dbd6c75ce9c657 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Fri, 8 Nov 2024 09:57:25 +0100 Subject: [PATCH] DPL Analysis: fix missing connection to the grid It's not a given that parent files and the original data are on the same support, so we need to connect to the grid if needed. --- Framework/AnalysisSupport/src/Plugin.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Framework/AnalysisSupport/src/Plugin.cxx b/Framework/AnalysisSupport/src/Plugin.cxx index b899a52206422..e2a9a98ab90d3 100644 --- a/Framework/AnalysisSupport/src/Plugin.cxx +++ b/Framework/AnalysisSupport/src/Plugin.cxx @@ -175,6 +175,10 @@ struct DiscoverMetadataInAOD : o2::framework::ConfigDiscoveryPlugin { } } + if (parentFilename.starts_with("alien://")) { + TGrid::Connect("alien://"); + } + std::unique_ptr parentFile{TFile::Open(parentFilename.c_str())}; if (parentFile.get() == nullptr) { LOGP(fatal, "Couldn't open derived file \"{}\"!", parentFilename);