1 #ifndef MACRO_FUN4ALLG4SPHENIX_C
2 #define MACRO_FUN4ALLG4SPHENIX_C
9 #include <G4_CaloTrigger.C>
11 #include <G4_DSTReader.C>
12 #include <G4_Global.C>
13 #include <G4_HIJetReco.C>
32 #include <anatutorial/AnaTutorial.h>
46 R__LOAD_LIBRARY(libfun4all.so)
47 R__LOAD_LIBRARY(libffamodules.so)
48 R__LOAD_LIBRARY(libanatutorial.so)
54 const
string &inputFile = "https:
55 const
string &outputFile = "G4sPHENIX.
root",
56 const
string &embed_input_file = "https:
58 const
string &outdir = ".")
293 Enable::BBCFAKE =
true;
458 if ((Enable::BBC && Enable::BBCRECO) || Enable::BBCFAKE)
Bbc_Reco();
526 const std::string kshortFile =
"./kshort_" + outputFile;
527 const std::string residualsFile =
"./residuals_" + outputFile;
539 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
581 string outputroot = outputFile;
582 string remove_this =
".root";
583 size_t pos = outputroot.find(remove_this);
584 if (pos != string::npos)
586 outputroot.erase(pos, remove_this.length());
669 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
670 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
672 cout <<
"-------------------------------------------------" << endl;
673 cout <<
"You are in event display mode. Run one event with" << endl;
674 cout <<
"se->run(1)" << endl;
675 cout <<
"Run Geant4 command with following examples" << endl;
676 gROOT->ProcessLine(
"displaycmd()");
690 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
691 cout <<
"it will run forever, so I just return without running anything" << endl;
702 if (Enable::QA)
QA_Output(outputroot +
"_qa.root");
710 std::cout <<
"All done" << std::endl;