1 #ifndef MACRO_FUN4ALLG4FSPHENIX_C
2 #define MACRO_FUN4ALLG4FSPHENIX_C
4 #include <GlobalVariables.C>
12 #include <G4_Global.C>
37 const
string &inputFile = "https:
38 const
string &outputFile = "G4fsPHENIX.root",
39 const
string &embed_input_file = "https:
41 const
string &outdir = ".")
437 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
470 string outputroot = outputFile;
471 string remove_this =
".root";
472 size_t pos = outputroot.find(remove_this);
473 if (pos != string::npos)
475 outputroot.erase(pos, remove_this.length());
529 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
530 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
532 cout <<
"-------------------------------------------------" << endl;
533 cout <<
"You are in event display mode. Run one event with" << endl;
534 cout <<
"se->run(1)" << endl;
535 cout <<
"Run Geant4 command with following examples" << endl;
536 gROOT->ProcessLine(
"displaycmd()");
549 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
550 cout <<
"it will run forever, so I just return without running anything" << endl;
562 std::cout <<
"All done" << std::endl;