Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Analysis/Core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ o2_target_root_dictionary(AnalysisCore
o2_add_executable(merger
COMPONENT_NAME aod
SOURCES src/AODMerger.cxx
PUBLIC_LINK_LIBRARIES ROOT::Hist ROOT::Core)
PUBLIC_LINK_LIBRARIES ROOT::Hist ROOT::Core ROOT::Net)

if(FastJet_FOUND)
o2_add_library(AnalysisJets
Expand Down
8 changes: 8 additions & 0 deletions Analysis/Core/src/AODMerger.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "TList.h"
#include "TDirectory.h"
#include "TObjString.h"
#include <TGrid.h>

// AOD merger with correct index rewriting
// No need to know the datamodel because the branch names follow a canonical standard (identified by fIndex)
Expand Down Expand Up @@ -71,13 +72,20 @@ int main(int argc, char* argv[])
std::ifstream in;
in.open(inputCollection);
TString line;
bool connectedToAliEn = false;
while (in.good()) {
in >> line;

if (line.Length() == 0) {
continue;
}

if (line.BeginsWith("alien:") && !connectedToAliEn) {
printf("Connecting to AliEn...");
TGrid::Connect("alien:");
connectedToAliEn = true; // Only try once
}

printf("Processing input file: %s\n", line.Data());

auto inputFile = TFile::Open(line);
Expand Down