Skip to content

Commit

Permalink
DPL Analysis: fix missing connection to the grid
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ktf committed Nov 8, 2024
1 parent b345d0f commit d2c347f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Framework/AnalysisSupport/src/Plugin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ struct DiscoverMetadataInAOD : o2::framework::ConfigDiscoveryPlugin {
}
}

if (parentFilename.starts_with("alien://")) {
TGrid::Connect("alien://");
}

std::unique_ptr<TFile> parentFile{TFile::Open(parentFilename.c_str())};
if (parentFile.get() == nullptr) {
LOGP(fatal, "Couldn't open derived file \"{}\"!", parentFilename);
Expand Down

0 comments on commit d2c347f

Please sign in to comment.