21 #include <g4eval/TrkrEvaluator.h>
37 #include <phgeom/PHGeomUtility.h>
43 R__LOAD_LIBRARY(libcalo_reco.so)
44 R__LOAD_LIBRARY(libfun4all.so)
45 R__LOAD_LIBRARY(libg4tpc.so)
46 R__LOAD_LIBRARY(libg4detectors.so)
47 R__LOAD_LIBRARY(libg4eval.so)
48 R__LOAD_LIBRARY(libg4histos.so)
49 R__LOAD_LIBRARY(libg4testbench.so)
50 R__LOAD_LIBRARY(libg4tpc.so)
51 R__LOAD_LIBRARY(libg4intt.so)
52 R__LOAD_LIBRARY(libg4mvtx.so)
53 R__LOAD_LIBRARY(libg4hough.so)
54 R__LOAD_LIBRARY(libg4eval.so)
55 R__LOAD_LIBRARY(libintt.so)
56 R__LOAD_LIBRARY(libmvtx.so)
57 R__LOAD_LIBRARY(libtpc2019.so)
58 R__LOAD_LIBRARY(libtrack_reco.so)
62 const double placementR = 0.5 * (40 + 60);
63 const double rotaitonZ = TMath::Pi() + TMath::Pi() * 2 / 12. / 2.;
65 const double driftLength = 40;
66 const double cageRadius = 20;
68 gSystem->Load(
"libfun4all");
69 gSystem->Load(
"libg4detectors");
70 gSystem->Load(
"libg4testbench");
71 gSystem->Load(
"libg4histos");
72 gSystem->Load(
"libg4eval.so");
73 gSystem->Load(
"libqa_modules");
74 gSystem->Load(
"libg4tpc");
75 gSystem->Load(
"libtrack_io.so");
76 gSystem->Load(
"libfun4all.so");
77 gSystem->Load(
"libg4detectors.so");
78 gSystem->Load(
"libtpc2019.so");
79 gSystem->Load(
"libg4eval.so");
80 gSystem->Load(
"libfun4all.so");
81 gSystem->Load(
"libg4detectors.so");
82 gSystem->Load(
"libg4hough.so");
83 gSystem->Load(
"libtrack_reco.so");
97 double phi = 180 + 360 / 12 / 2;
99 double add_place_z = -driftLength * .5;
108 double angle = theta * TMath::Pi() / 180.;
111 gen->
set_phi_range(TMath::Pi() * phi / 180 - 0.001, TMath::Pi() * phi / 180 + 0.001);
153 const double endcap_thickness = 0.5;
159 cyl->
set_double_param(
"place_z", -driftLength / 2 +
sign * ((driftLength / 2) + endcap_thickness / 2 + 1
e-4));
170 for (
int i = 0;
i < 3; ++
i)
172 const double GEMLocation = 0;
173 const double GEMSpacing = -20;
179 cyl->
set_double_param(
"place_x", (GEMLocation + GEMSpacing *
i) * TMath::Cos(rotaitonZ));
180 cyl->
set_double_param(
"place_y", (GEMLocation + GEMSpacing * i) * TMath::Sin(rotaitonZ));
202 sprintf(cmd,
"/control/execute vis.mac");
206 g4Reco->
ApplyCommand(
"/vis/scene/add/axes 0 0 0 50 cm");