1 #ifndef MACRO_FUN4ALLG4SPHENIX_C
2 #define MACRO_FUN4ALLG4SPHENIX_C
4 #include <../../pi0Efficiency.h>
10 #include <G4_CaloTrigger.C>
12 #include <G4_DSTReader.C>
13 #include <G4_Global.C>
14 #include <G4_HIJetReco.C>
32 R__LOAD_LIBRARY(libfun4all.so)
33 R__LOAD_LIBRARY(libpi0Efficiency.so)
40 const
string &outputFile = "G4sPHENIX.
root",
41 const
string &inputFile = "https:
42 const
string &embed_input_file = "https:
44 const
string &outdir = ".")
270 Enable::BBCFAKE =
true;
280 Enable::TrackingService =
false;
421 if (Enable::BBC || Enable::BBCFAKE)
Bbc_Reco();
476 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
518 string outputroot = outputFile;
519 string remove_this =
".root";
520 size_t pos = outputroot.find(remove_this);
521 if (pos != string::npos)
523 outputroot.erase(pos, remove_this.length());
601 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
602 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
604 cout <<
"-------------------------------------------------" << endl;
605 cout <<
"You are in event display mode. Run one event with" << endl;
606 cout <<
"se->run(1)" << endl;
607 cout <<
"Run Geant4 command with following examples" << endl;
608 gROOT->ProcessLine(
"displaycmd()");
622 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
623 cout <<
"it will run forever, so I just return without running anything" << endl;
634 if (Enable::QA)
QA_Output(outputroot +
"_qa.root");
641 std::cout <<
"All done" << std::endl;