Skip to content

Commit

Permalink
Make ROOT load libraries without the .so extension (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored Jul 10, 2024
1 parent e84887e commit aa615b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/read_delphes.C
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ template <typename RecoT> 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);
Expand Down
10 changes: 5 additions & 5 deletions examples/read_edm4hep.C
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa615b0

Please sign in to comment.