1 #ifndef MACRO_FUN4ALLG4EICDETECTOR_C
2 #define MACRO_FUN4ALLG4EICDETECTOR_C
4 #include <GlobalVariables.C>
12 #include <G4_Global.C>
30 const
string &inputFile = "https:
31 const
string &outputFile = "G4EICDetector.root",
32 const
string &embed_input_file = "https:
34 const
string &outdir = ".")
483 string outputroot = outputFile;
484 string remove_this =
".root";
485 size_t pos = outputroot.find(remove_this);
486 if (pos != string::npos)
488 outputroot.erase(pos, remove_this.length());
547 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
548 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
550 cout <<
"-------------------------------------------------" << endl;
551 cout <<
"You are in event display mode. Run one event with" << endl;
552 cout <<
"se->run(1)" << endl;
553 cout <<
"Run Geant4 command with following examples" << endl;
554 gROOT->ProcessLine(
"displaycmd()");
566 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
567 cout <<
"it will run forever, so I just return without running anything" << endl;
579 std::cout <<
"All done" << std::endl;