1 #ifndef MACRO_FUN4ALLG4SPHENIX_C
2 #define MACRO_FUN4ALLG4SPHENIX_C
4 #include <anatutorial/AnaTutorial.h>
6 #include <GlobalVariables.C>
13 #include <G4_Global.C>
40 const
string &inputFile = "https:
41 const
string &outputFile = "G4sPHENIX.root",
42 const
string &embed_input_file = "https:
44 const
string &outdir = ".")
454 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
487 string outputroot = outputFile;
488 string remove_this =
".root";
489 size_t pos = outputroot.find(remove_this);
490 if (pos != string::npos)
492 outputroot.erase(pos, remove_this.length());
573 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
574 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
576 cout <<
"-------------------------------------------------" << endl;
577 cout <<
"You are in event display mode. Run one event with" << endl;
578 cout <<
"se->run(1)" << endl;
579 cout <<
"Run Geant4 command with following examples" << endl;
580 gROOT->ProcessLine(
"displaycmd()");
593 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
594 cout <<
"it will run forever, so I just return without running anything" << endl;
605 if (Enable::QA)
QA_Output(outputroot +
"_qa.root");
612 std::cout <<
"All done" << std::endl;