From 6bb469bda142095f53e7703ebe32ac928b5b4337 Mon Sep 17 00:00:00 2001 From: Jin Huang Date: Wed, 6 Sep 2017 11:21:57 -0400 Subject: [PATCH 1/2] add meta-lib that link to other necessary libs containing objects used DST files --- macros/g4simulations/Fun4All_G4_sPHENIX.C | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/macros/g4simulations/Fun4All_G4_sPHENIX.C b/macros/g4simulations/Fun4All_G4_sPHENIX.C index 7d4b221a7..3a80bf797 100644 --- a/macros/g4simulations/Fun4All_G4_sPHENIX.C +++ b/macros/g4simulations/Fun4All_G4_sPHENIX.C @@ -400,6 +400,9 @@ int Fun4All_G4_sPHENIX( if (readhits) { + //meta-lib for DST objects used in simulation outputs + gSystem->Load("libg4dst.so"); + // Hits file Fun4AllInputManager *hitsin = new Fun4AllDstInputManager("DSTin"); hitsin->fileopen(inputFile); @@ -413,6 +416,9 @@ int Fun4All_G4_sPHENIX( exit(3); } + //meta-lib for DST objects used in simulation outputs + gSystem->Load("libg4dst.so"); + Fun4AllDstInputManager *in1 = new Fun4AllNoSyncDstInputManager("DSTinEmbed"); // in1->AddFile(embed_input_file); // if one use a single input file in1->AddListFile(embed_input_file); // RecommendedL: if one use a text list of many input files @@ -420,6 +426,9 @@ int Fun4All_G4_sPHENIX( } if (readhepmc) { + //meta-lib for DST objects used in simulation outputs + gSystem->Load("libg4dst.so"); + Fun4AllInputManager *in = new Fun4AllHepMCInputManager( "DSTIN"); se->registerInputManager( in ); se->fileopen( in->Name().c_str(), inputFile ); From 16dfe253c2c6863519ea300850309b6ad3de3fab Mon Sep 17 00:00:00 2001 From: Jin Huang Date: Tue, 11 Oct 2022 14:12:53 -0400 Subject: [PATCH 2/2] Test --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 056828149..5658413b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Compiled Object files +# Compiled Object files *.slo *.lo *.o