9 #ifndef MACRO_G4BARRELEIC_C
10 #define MACRO_G4BARRELEIC_C
12 #include <GlobalVariables.C>
27 double radius,
double halflength,
double tSilicon,
double tAirgap);
63 for (
int i = 0; i < 7; i++)
66 cout <<
"G4BARREL::SETTING::BARRELV" << i <<
"=true ";
68 cout <<
" or G4BARREL::SETTING::BARRELV" << i <<
"=true ";
79 double max_bh_radius = 0.;
85 const float um = 0.0001;
88 double r[6] = {3.64, 4.81, 5.98, 16.0, 22.0, -1};
89 double halfLength[6] = {20, 20, 25, 25, 25, 25};
90 double tSilicon[6] = {100 *
um, 100 *
um, 100 *
um, 100 *
um, 100 *
um, 100 * um};
91 double tAirgap[6] = {0.9, 0.9, 1, 1, 1, 1};
95 for (Int_t i = 0; i < 3; i++) tSilicon[i] = 50 * um;
99 for (Int_t i = 0; i < 5; i++) tSilicon[i] = 35 * um;
103 for (Int_t i = 0; i < 3; i++) tSilicon[i] = 50 * um;
116 int my_nLayer[2] = {nLayer1, nLayer2};
118 double my_r[2][3] = {{3.64, 4.81, 5.98},
121 double my_halfLength[2][3] = {{20, 20, 25},
124 double my_tSilicon = 35 *
um;
126 for (
int n = 0;
n < 2;
n++)
128 if (
n == 1) my_tSilicon = 85 *
um;
129 for (
int i = 0; i < my_nLayer[
n]; i++)
140 max_bh_radius = my_r[1][nLayer2 - 1] + 1.5;
141 return max_bh_radius;
145 for (
int i = 0; i < nLayer; i++)
148 max_bh_radius = r[i] + 1.5;
156 return max_bh_radius;
163 double radius,
double halflength,
double tSilicon,
double tAirgap)
168 const int nSubLayer = 7;
170 const double mm = .1 *
cm;
171 const double um = 1
e-3 *
mm;
173 string layerName[nSubLayer] = {
"SiliconSensor",
"Metalconnection",
"HDI",
"Cooling",
174 "Support1",
"Support_Gap",
"Support2"};
175 string material[nSubLayer] = {
"G4_Si",
"G4_Al",
"G4_KAPTON",
"G4_WATER",
176 "G4_GRAPHITE",
"G4_AIR",
"G4_GRAPHITE"};
178 50 *
um, tAirgap, 50 * um};
180 double max_bh_radius = 0.;
182 cout <<
"started to create cylinder layer: " << name << endl;
184 double currRadius =
radius;
186 for (
int l = 0; l < nSubLayer; l++)
188 cout << name <<
"_" << layerName[l] <<
"\t" << currRadius;
198 currRadius = currRadius + thickness[l];
199 cout <<
"\t" << currRadius << endl;