1 #ifndef MACRO_FUN4ALLG4SPHENIX_C
2 #define MACRO_FUN4ALLG4SPHENIX_C
4 #include <../src/singlePhotonClusterAna.h>
8 #include <G4Setup_sPHENIX.C>
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(libsinglePhotonClusterAna.so)
40 const
string &outputFile = "G4sPHENIX.
root",
41 const
string &inputFile = "https:
42 const
string &embed_input_file = "https:
44 const
string &outdir = ".")
271 Enable::BBCFAKE =
true;
425 if (Enable::BBC || Enable::BBCFAKE)
Bbc_Reco();
480 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
522 string outputroot = outputFile;
523 string remove_this =
".root";
524 size_t pos = outputroot.find(remove_this);
525 if (pos != string::npos)
527 outputroot.erase(pos, remove_this.length());
605 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
606 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
608 cout <<
"-------------------------------------------------" << endl;
609 cout <<
"You are in event display mode. Run one event with" << endl;
610 cout <<
"se->run(1)" << endl;
611 cout <<
"Run Geant4 command with following examples" << endl;
612 gROOT->ProcessLine(
"displaycmd()");
626 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
627 cout <<
"it will run forever, so I just return without running anything" << endl;
638 if (Enable::QA)
QA_Output(outputroot +
"_qa.root");
645 std::cout <<
"All done" << std::endl;