1 #ifndef MACRO_FUN4ALLG4EICDETECTOR_C
2 #define MACRO_FUN4ALLG4EICDETECTOR_C
4 #include <anatutorial/AnaTutorial.h>
31 const
string &inputFile = "https:
32 const
string &outputFile = "G4EICDetector.root",
33 const
string &embed_input_file = "https:
35 const
string &outdir = ".")
261 Enable::FGEM_ORIG =
false;
457 string outputroot = outputFile;
458 string remove_this =
".root";
459 size_t pos = outputroot.find(remove_this);
460 if (pos != string::npos)
462 outputroot.erase(pos, remove_this.length());
528 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
529 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
531 cout <<
"-------------------------------------------------" << endl;
532 cout <<
"You are in event display mode. Run one event with" << endl;
533 cout <<
"se->run(1)" << endl;
534 cout <<
"Run Geant4 command with following examples" << endl;
535 gROOT->ProcessLine(
"displaycmd()");
547 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
548 cout <<
"it will run forever, so I just return without running anything" << endl;
560 std::cout <<
"All done" << std::endl;