1 #ifndef MACRO_FUN4ALLG4SPHENIX_C
2 #define MACRO_FUN4ALLG4SPHENIX_C
4 #include <GlobalVariables.C>
12 #include <G4_Global.C>
38 const
string &inputFile = "https:
39 const
string &outputFile = "G4sPHENIX.root",
40 const
string &embed_input_file = "https:
42 const
string &outdir = ".")
468 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
510 string outputroot = outputFile;
511 string remove_this =
".root";
512 size_t pos = outputroot.find(remove_this);
513 if (pos != string::npos)
515 outputroot.erase(pos, remove_this.length());
585 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
586 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
588 cout <<
"-------------------------------------------------" << endl;
589 cout <<
"You are in event display mode. Run one event with" << endl;
590 cout <<
"se->run(1)" << endl;
591 cout <<
"Run Geant4 command with following examples" << endl;
592 gROOT->ProcessLine(
"displaycmd()");
605 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
606 cout <<
"it will run forever, so I just return without running anything" << endl;
617 if (Enable::QA)
QA_Output(outputroot +
"_qa.root");
624 std::cout <<
"All done" << std::endl;