Skip to content
Open
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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Compiled Object files
# Compiled Object files
*.slo
*.lo
*.o
Expand Down
9 changes: 9 additions & 0 deletions macros/g4simulations/Fun4All_G4_sPHENIX.C
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -413,13 +416,19 @@ 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
se->registerInputManager(in1);
}
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 );
Expand Down