4 #ifndef MACRO_FUN4ALLG4SPHENIX_C
5 #define MACRO_FUN4ALLG4SPHENIX_C
13 #include <G4_CaloTrigger.C>
15 #include <G4_DSTReader.C>
16 #include <G4_Global.C>
17 #include <G4_HIJetReco.C>
31 #include <ffamodules/XploadInterface.h>
40 R__LOAD_LIBRARY(libfun4all.so)
41 R__LOAD_LIBRARY(libffamodules.so)
42 R__LOAD_LIBRARY(libCalib.so.0.0.0)
50 const
string &inputFile = "https:
51 const
string &outputFile = "G4sPHENIX.
root",
52 const
string &embed_input_file = "https:
54 const
string &outdir = ".")
170 Enable::BBCFAKE =
true;
332 if (Enable::BBC || Enable::BBCFAKE)
Bbc_Reco();
387 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
429 string outputroot = outputFile;
430 string remove_this =
".root";
431 size_t pos = outputroot.find(remove_this);
432 if (pos != string::npos)
434 outputroot.erase(pos, remove_this.length());
452 gSystem->Load(
"libCalib.so.0.0.0");
513 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
514 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
516 cout <<
"-------------------------------------------------" << endl;
517 cout <<
"You are in event display mode. Run one event with" << endl;
518 cout <<
"se->run(1)" << endl;
519 cout <<
"Run Geant4 command with following examples" << endl;
520 gROOT->ProcessLine(
"displaycmd()");
534 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
535 cout <<
"it will run forever, so I just return without running anything" << endl;
546 if (Enable::QA)
QA_Output(outputroot +
"_qa.root");
553 std::cout <<
"All done" << std::endl;