1 #ifndef MACRO_FUN4ALLG4SPHENIX_C
2 #define MACRO_FUN4ALLG4SPHENIX_C
9 #include <G4_CaloTrigger.C>
10 #include <G4_DSTReader.C>
12 #include <G4_HIJetReco.C>
18 #include <G4_Tracking.C>
35 const
string &inputFile = "https:
36 const
string &outputFile = "G4sPHENIX.root",
37 const
string &embed_input_file = "https:
39 const
string &outdir = ".")
220 Enable::MVTX_CLUSTER = Enable::MVTX_CELL &&
true;
223 Enable::INTT_CELL = Enable::INTT &&
true;
224 Enable::INTT_CLUSTER = Enable::INTT_CELL &&
true;
229 Enable::TPC_CLUSTER = Enable::TPC_CELL &&
true;
235 Enable::TRACKING_TRACK =
true;
345 if (Enable::MVTX_CELL) Mvtx_Cells();
346 if (Enable::INTT_CELL) Intt_Cells();
347 if (Enable::TPC_CELL) TPC_Cells();
386 if (Enable::MVTX_CLUSTER) Mvtx_Clustering();
387 if (Enable::INTT_CLUSTER) Intt_Clustering();
388 if (Enable::TPC_CLUSTER) TPC_Clustering();
391 if (Enable::TRACKING_TRACK)
402 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
418 if (Enable::CALOTRIGGER)
428 if (Enable::HIJETS) HIJetReco();
435 string outputroot = outputFile;
436 string remove_this =
".root";
437 size_t pos = outputroot.find(remove_this);
438 if (pos != string::npos)
440 outputroot.erase(pos, remove_this.length());
484 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
485 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
487 cout <<
"-------------------------------------------------" << endl;
488 cout <<
"You are in event display mode. Run one event with" << endl;
489 cout <<
"se->run(1)" << endl;
490 cout <<
"Run Geant4 command with following examples" << endl;
491 gROOT->ProcessLine(
"displaycmd()");
504 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
505 cout <<
"it will run forever, so I just return without running anything" << endl;
517 std::cout <<
"All done" << std::endl;