From 519556224e7f5a7ccc642c4e1d8ed39a94623fe2 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Wed, 10 Jul 2024 10:14:48 +0200 Subject: [PATCH] Make ROOT load libraries without the .so extension --- examples/read_delphes.C | 2 +- examples/read_edm4hep.C | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/read_delphes.C b/examples/read_delphes.C index acfeb929..1e18e4cd 100644 --- a/examples/read_delphes.C +++ b/examples/read_delphes.C @@ -89,7 +89,7 @@ template int getNType(const Jet* jet) { // Following delphes/examples/Example3.C (more or less) void read_delphes(const char* inputfile) { - gSystem->Load("libDelphes.so"); + gSystem->Load("libDelphes"); auto* chain = new TChain("Delphes"); chain->Add(inputfile); diff --git a/examples/read_edm4hep.C b/examples/read_edm4hep.C index 459af78d..a90c657f 100644 --- a/examples/read_edm4hep.C +++ b/examples/read_edm4hep.C @@ -94,11 +94,11 @@ void fillHists(TH1F* hDeltaPt, TH1F* hDeltaE, edm4hep::ConstReconstructedParticl } void read_edm4hep(std::string&& inputfile) { - gSystem->Load("libpodio.so"); - gSystem->Load("libpodioDict.so"); - gSystem->Load("libpodioRootIO.so"); - gSystem->Load("libedm4hep.so"); - gSystem->Load("libedm4hepDict.so"); + gSystem->Load("libpodio"); + gSystem->Load("libpodioDict"); + gSystem->Load("libpodioRootIO"); + gSystem->Load("libedm4hep"); + gSystem->Load("libedm4hepDict"); auto reader = podio::ROOTReader(); reader.openFile(inputfile);