1 #ifndef MACRO_FUN4ALLG4SPHENIX_C
2 #define MACRO_FUN4ALLG4SPHENIX_C
4 #include <GlobalVariables.C>
11 #include <G4_Global.C>
35 const
string &inputFile = "https:
36 const
string &outputFile = "G4sPHENIX.root",
37 const
string &embed_input_file = "https:
39 const
string &outdir = ".")
402 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
435 string outputroot = outputFile;
436 string remove_this =
".root";
437 size_t pos = outputroot.find(remove_this);
438 if (pos != string::npos)
440 outputroot.erase(pos, remove_this.length());
484 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
485 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
487 cout <<
"-------------------------------------------------" << endl;
488 cout <<
"You are in event display mode. Run one event with" << endl;
489 cout <<
"se->run(1)" << endl;
490 cout <<
"Run Geant4 command with following examples" << endl;
491 gROOT->ProcessLine(
"displaycmd()");
504 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
505 cout <<
"it will run forever, so I just return without running anything" << endl;
517 std::cout <<
"All done" << std::endl;