1 #ifndef MACRO_G4GEMCYL_C
2 #define MACRO_G4GEMCYL_C
18 const double mm = 0.1;
19 const double um = 1
e-4;
22 TString mat_tpc[] = {
"G4_MYLAR",
"G4_METHANE",
"G4_GRAPHITE"};
23 const int n_layers_tpc =
sizeof(mat_tpc)/
sizeof(*mat_tpc);
24 double thick_tpc[] = { 25*
um , 2 , 10*um };
25 double cl1_tpc[] = {1.0,0.1,0.1};
26 double cl2_tpc[] = {0.6,0.3,0.7};
27 double cl3_tpc[] = {0.1,0.9,0.2};
31 for (
int ilayer = 0; ilayer < n_layers_tpc; ilayer++){
38 if(mat_tpc[ilayer]==
"G4_METHANE")
41 cyl->
set_color(cl1_tpc[ilayer],cl2_tpc[ilayer],cl3_tpc[ilayer]);
42 g4Reco->registerSubsystem(cyl);
44 last_r += thick_tpc[ilayer];
54 const int nGEMLayers = 3;
55 TString mat_hbd1[] = {
"G4_Cu",
"G4_KAPTON",
"G4_Cu",
"G10"};
56 const int n_layers_hbd1 =
sizeof(mat_hbd1)/
sizeof(*mat_hbd1);
57 double thick_hbd1[] = {0.0005 ,0.005 ,0.0005 ,0.15 };
58 double perc_filled_hbd1[] = { .64 , .64 , .64 ,.065 };
59 double cl1_hbd1[] = {1.0,0.0,1.0,0.9};
60 double cl2_hbd1[] = {0.1,0.0,0.1,1.0};
61 double cl3_hbd1[] = {0.1,0.5,0.1,0.8};
63 for(
int ngem = 0 ; ngem<nGEMLayers ; ngem++){
64 for (
int ilayer = 0; ilayer < n_layers_hbd1; ilayer++){
68 cyl->
set_double_param(
"thickness", thick_hbd1[ilayer]*perc_filled_hbd1[ilayer] );
72 cyl->
set_color(cl1_hbd1[ilayer],cl2_hbd1[ilayer],cl3_hbd1[ilayer]);
73 g4Reco->registerSubsystem(cyl);
75 last_r += thick_hbd1[ilayer];
82 TString mat_hbd2[] = {
"G4_KAPTON",
"G4_Cu",
"G10"};
83 const int n_layers_hbd2 =
sizeof(mat_hbd2)/
sizeof(*mat_hbd2);
84 double thick_hbd2[] = {0.005 ,0.0005 ,0.025*2};
85 double perc_filled_hbd2[] = { 1 , .80 , 1 };
86 double cl1_hbd2[] = {0.0,1.0,0.9};
87 double cl2_hbd2[] = {0.0,0.1,1.0};
88 double cl3_hbd2[] = {0.5,0.1,0.8};
90 for (
int ilayer = 0; ilayer < n_layers_hbd2; ilayer++){
94 cyl->
set_double_param(
"thickness", thick_hbd2[ilayer]*perc_filled_hbd2[ilayer] );
98 cyl->
set_color(cl1_hbd2[ilayer],cl2_hbd2[ilayer],cl3_hbd2[ilayer]);
99 g4Reco->registerSubsystem(cyl);
101 last_r += thick_hbd2[ilayer];