Skip to content

Commit

Permalink
Make ROOT load libraries without the .so extension (#386)
Browse files Browse the repository at this point in the history
so that in works on other operating systems like MacOS.

Co-authored-by: jmcarcell <[email protected]>
  • Loading branch information
jmcarcell and jmcarcell authored Jul 16, 2024
1 parent 19ff336 commit 0905420
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addons/TMVAHelper/python/TMVAHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pathlib

ROOT.gInterpreter.ProcessLine('#include "TMVAHelper/TMVAHelper.h"')
ROOT.gSystem.Load("libTMVAHelper.so")
ROOT.gSystem.Load("libTMVAHelper")

class TMVAHelperXGB():

Expand Down
12 changes: 6 additions & 6 deletions examples/FCCee/vertex/reproducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ void reproducer()
{

gInterpreter->ProcessLine("#include \"VertexFinderActs.h\"");
gSystem->Load("libpodio.so");
gSystem->Load("libpodioDict.so");
gSystem->Load("libpodioRootIO.so");
gSystem->Load("libedm4hep.so");
gSystem->Load("libedm4hepDict.so");
gSystem->Load("libFCCAnalyses.so");
gSystem->Load("libpodio");
gSystem->Load("libpodioDict");
gSystem->Load("libpodioRootIO");
gSystem->Load("libedm4hep");
gSystem->Load("libedm4hepDict");
gSystem->Load("libFCCAnalyses");

auto reader = podio::ROOTReader();
reader.openFile("https://fcc-physics-events.web.cern.ch/fcc-physics-events/sharedFiles/FCCee/test_zbb_Bs2DsK.root");
Expand Down
2 changes: 1 addition & 1 deletion examples/FCChh/tth_4l/fcchh_ana_tth_4l.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main(int argc, char* argv[]){
#endif

// fcc edm libraries
gSystem->Load("libdatamodel.so");
gSystem->Load("libdatamodel");

// very basic command line argument parsing
if (argc < 3) {
Expand Down

0 comments on commit 0905420

Please sign in to comment.