1 #ifndef MACRO_G4TRACKINGMODULAR_C
2 #define MACRO_G4TRACKINGMODULAR_C
4 #include <GlobalVariables.C>
72 std::vector<PHG4TrackFastSim *> kalmanTrackers = {kalman};
78 kalmanInnerTracking->
Verbosity(verbosity);
81 kalmanTrackers.push_back(kalmanInnerTracking);
83 for (
auto k : kalmanTrackers) {
88 k->set_use_vertex_in_fitting(
false);
89 k->set_vertex_xy_resolution(0);
90 k->set_vertex_z_resolution(0);
91 k->enable_vertexing(
true);
94 k->set_use_vertex_in_fitting(
true);
95 k->set_vertex_xy_resolution(50
e-4);
96 k->set_vertex_z_resolution(50
e-4);
115 float_t pitch = 20
e-4;
116 double r[6] = { 3.64, 4.81, 5.98, 16.0, 22.0, -1};
117 if (specialSetting.Contains(
"BARRELV4")){
124 for (Int_t i = 0; i < nLayer; i++){
125 for (
auto k : kalmanTrackers) {
126 k->add_phg4hits(Form(
"G4HIT_BARREL_%d", i),
134 k->add_cylinder_state(Form(
"BARREL_%d", i), r[i]);
147 float zFWDdisks[6] = {35, 53, 77, 101, 125, 270};
148 if (specialSetting.Contains(
"FSTV4"))
150 if (specialSetting.Contains(
"FSTV2"))
152 Float_t pitch = 20
e-4;
153 Int_t llargerPitch = -1;
154 if (specialSetting.Contains(
"FSTV3") || specialSetting.Contains(
"FSTV41"))
156 if (specialSetting.Contains(
"FSTV42"))
160 for (
int i = 0; i < nDisks; i++) {
161 if (llargerPitch != -1 && i >= llargerPitch)
163 for (
auto k : kalmanTrackers) {
164 k->add_phg4hits(Form(
"G4HIT_FST_%d", i),
172 k->add_zplane_state(Form(
"FST_%d", i), zFWDdisks[i]);
184 float_t pitch = 10
e-4;
185 float rBarrel[6] = {3.3, 5.7, 21.0, 22.68, 39.30, 43.23};
186 for (
int i = 10; i < 16; i++) {
187 sprintf(nodename,
"G4HIT_LBLVTX_CENTRAL_%d", i);
189 for (
auto k : kalmanTrackers) {
200 k->add_cylinder_state(Form(
"LBLVTX_CENTRAL_%d", i), rBarrel[i-10]);
205 float zFWDdisks[5] = {25, 49, 73, 97, 121};
206 for (
int i = 20; i < 25; i++) {
207 sprintf(nodename,
"G4HIT_LBLVTX_FORWARD_%d", i);
208 for (
auto k : kalmanTrackers) {
219 k->add_zplane_state(Form(
"LBLVTX_FORWARD_%d", i), zFWDdisks[i-20]);
225 float zBWDdisks[5] = {-25, -49, -73, -97, -121};
226 for (
int i = 30; i < 35; i++) {
227 sprintf(nodename,
"G4HIT_LBLVTX_BACKWARD_%d", i);
228 for (
auto k : kalmanTrackers) {
239 k->add_zplane_state(Form(
"LBLVTX_BACKWARD_%d", i), zBWDdisks[i-30]);
249 float posResImp = sqrt(12);
250 float pitchLGAD = 500
e-4;
252 posResImp = sqrt(256);
255 float resLGAD = pitchLGAD/posResImp;
259 float resLGAD_barrel = resLGAD;
261 resLGAD_barrel = 35
e-1;
341 for (
int i = minEGEM; i < 4; i++){
343 Form(
"G4HIT_EGEM_%d", i),
364 for (
int i = minFGEM; i < 5; i++) {
387 kalman -> add_zplane_state(
"DRCALO_0", 300);
472 for (
auto k : kalmanTrackers) {
498 if (specialSetting.Contains(
"FSTV4"))
500 for (Int_t i = 0; i < nDisks; i++){
506 if (specialSetting.Contains(
"BARRELV4"))
509 for (Int_t i = 0; i < nLayer; i++){
515 for (
int i = 10; i < 16; i++) {
518 for (
int i = 20; i < 25; i++) {
521 for (
int i = 30; i < 35; i++) {