100 {
102 TGeoMedium* vacuum = gGeoManager->GetMedium("vacuum");
103
105 TGeoMedium* CarbonComposite = gGeoManager->GetMedium("CarbonComposite");
106
108 TGeoMedium* SciFiMat = gGeoManager->GetMedium("SciFiMat");
109
111 TGeoMedium* Airex = gGeoManager->GetMedium("Airex");
112
113
114 TGeoVolume* volTarget = gGeoManager->GetVolume("volTarget");
115
116 TGeoBBox* TT_box =
118 TGeoVolume* TT_volume = new TGeoVolume("TT", TT_box, vacuum);
119 TT_volume->SetLineColor(kBlue - 1);
120
121 TT_volume->SetVisibility(1);
122 TT_volume->SetVisDaughters(1);
123
124
125 TGeoBBox* TT_support_box =
new TGeoBBox(
"TT_support_box",
TTrackerX / 2,
127 TGeoVolume* TT_support_volume =
128 new TGeoVolume("TT_support", TT_support_box, CarbonComposite);
129 TT_support_volume->SetLineColor(kGray - 2);
130 TT_support_volume->SetVisibility(1);
131
132
133 TGeoBBox* TT_honeycomb_box =
new TGeoBBox(
"TT_honeycomb_box",
TTrackerX / 2,
135 TGeoVolume* TT_honeycomb_volume =
136 new TGeoVolume("TT_honeycomb", TT_honeycomb_box, Airex);
137 TT_honeycomb_volume->SetLineColor(kYellow);
138 TT_honeycomb_volume->SetVisibility(1);
139
140
141 TGeoBBox* TT_scifi_plane_hor_box = new TGeoBBox(
143 TGeoVolume* TT_scifi_plane_hor_volume =
144 new TGeoVolume("TT_scifi_plane_hor", TT_scifi_plane_hor_box, SciFiMat);
145 TT_scifi_plane_hor_volume->SetVisibility(1);
146
147 TGeoBBox* TT_scifi_plane_vert_box = new TGeoBBox(
149 TGeoVolume* TT_scifi_plane_vert_volume =
150 new TGeoVolume("TT_scifi_plane_vert", TT_scifi_plane_vert_box, SciFiMat);
151 TT_scifi_plane_vert_volume->SetVisibility(1);
152
153
154 TGeoBBox* TT_scifimat_hor_box =
157 TGeoVolume* TT_scifimat_hor_volume =
158 new TGeoVolume("TT_scifimat_hor", TT_scifimat_hor_box, SciFiMat);
159 TT_scifimat_hor_volume->SetLineColor(kCyan - 9);
160
161 TGeoBBox* TT_scifimat_vert_box =
164 TGeoVolume* TT_scifimat_vert_volume =
165 new TGeoVolume("TT_scifimat_vert", TT_scifimat_vert_box, SciFiMat);
166 TT_scifimat_vert_volume->SetLineColor(kGreen - 7);
167
168
169 AddSensitiveVolume(TT_scifimat_hor_volume);
170 AddSensitiveVolume(TT_scifimat_vert_volume);
171
172
174 TT_scifi_plane_hor_volume->AddNode(
175 TT_scifimat_hor_volume, i + 1,
177 0));
178 }
180 TT_scifi_plane_vert_volume->AddNode(
181 TT_scifimat_vert_volume, 100 + i + 1,
183 0, 0));
184 }
185
186 TT_volume->AddNode(TT_support_volume, 0,
188 TT_volume->AddNode(
189 TT_scifi_plane_hor_volume, 0,
191 TT_volume->AddNode(
192 TT_scifi_plane_vert_volume, 0,
193 new TGeoTranslation(
195 TT_volume->AddNode(
196 TT_honeycomb_volume, 0,
197 new TGeoTranslation(
199 TT_volume->AddNode(
200 TT_support_volume, 1,
201 new TGeoTranslation(0, 0,
204
206
207
208 for (
int l = 0; l <
fNTT; ++l) {
209 volTarget->AddNode(
210 TT_volume, 1000 * (l + 1),
211 new TGeoTranslation(0, 0,
213 }
214}
Int_t InitMedium(const char *name)