10 bool do_hcalout =
true,
12 int n_TPC_layers = 40)
19 gROOT->LoadMacro(
"G4_Pipe.C");
24 gROOT->LoadMacro(
"G4_Svtx_maps_ladders+intt_ladders+tpc_KalmanPatRec.C");
30 gROOT->LoadMacro(
"G4_PSTOF.C");
36 gROOT->LoadMacro(
"G4_CEmc_Spacal.C");
42 gROOT->LoadMacro(
"G4_HcalIn_ref.C");
48 gROOT->LoadMacro(
"G4_Magnet.C");
53 gROOT->LoadMacro(
"G4_HcalOut_ref.C");
61 const string &
field =
"1.5",
63 const bool do_svtx =
true,
64 const bool do_pstof =
true,
65 const bool do_cemc =
true,
66 const bool do_hcalin =
true,
67 const bool do_magnet =
true,
68 const bool do_hcalout =
true,
69 const bool do_pipe =
true,
76 gSystem->Load(
"libg4detectors.so");
77 gSystem->Load(
"libg4testbench.so");
99 istringstream stringline(
field);
100 stringline >> fieldstrength;
101 if (stringline.fail()) {
103 if (
field.find(
"sPHENIX.root") != string::npos) {
117 if (do_pipe) radius =
Pipe(g4Reco, radius, absorberactive);
121 if (do_svtx) radius =
Svtx(g4Reco, radius, absorberactive);
126 if (do_pstof) radius =
PSTOF(g4Reco, radius, absorberactive);
131 if (do_cemc) radius =
CEmc(g4Reco, radius, 8, absorberactive);
137 if (do_hcalin) radius =
HCalInner(g4Reco, radius, 4, absorberactive);
142 if (do_magnet) radius =
Magnet(g4Reco, radius, 0, absorberactive);
147 if (do_hcalout) radius =
HCalOuter(g4Reco, radius, 4, absorberactive);
198 gSystem->Load(
"libfun4all.so");
199 gSystem->Load(
"libg4eval.so");
240 out->
StripNode(
"G4HIT_CEMC_ELECTRONICS");
248 out->
StripNode(
"G4HIT_ABSORBER_HCALOUT");