1 #ifndef MACRO_G4BARREL_C
2 #define MACRO_G4BARREL_C
33 Form(
"G4HIT_SVTX_%d",ilay),
36 10. / 10000. / sqrt(12.),
37 10. / 10000. / sqrt(12.),
49 Form(
"G4HIT_BARR_%d",ilay),
52 10. / 10000. / sqrt(12.),
53 10. / 10000. / sqrt(12.),
72 double si_vtx_r_pos[] = {3.6, 4.8, 12.3};
73 const int nVtxLayers =
sizeof(si_vtx_r_pos) /
sizeof(*si_vtx_r_pos);
74 for (
int ilayer = 0; ilayer < nVtxLayers; ilayer++)
94 double z_e_length[] = {-38.5, -52.0};
95 double z_h_length[] = {38.5, 52.0};
96 double si_r_pos[] = {30., 40.00};
97 const int nTrckLayers =
sizeof(si_r_pos) /
sizeof(*si_r_pos);
98 double mat_barr[] = {0.25,0.55};
99 for (
int ilayer = 0; ilayer < nTrckLayers; ilayer++)
107 cyl->
set_double_param(
"place_z", (z_h_length[ilayer] + z_e_length[ilayer])/2);