Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
station2.C
Go to the documentation of this file.
1/// \file
2/// \ingroup tutorial_geom
3/// Drawing a space station (version 2), using ROOT geometry class.
4///
5/// Reviewed by Sunman Kim (sunman98@hanmail.net)
6/// Supervisor: Prof. Inkyu Park (icpark@physics.uos.ac.kr)
7///
8/// How to run: `.x station2.C` in ROOT terminal, then use OpenGL
9///
10/// This macro was created for the evaluation of Computational Physics course in 2006.
11/// We thank to Prof. Inkyu Park for his special lecture on ROOT and to all of ROOT team
12///
13/// \image html geom_station2.png width=800px
14/// \macro_code
15///
16/// \author Dong Ryeol Lee (leedr2580@hanmail.net), Dept. of Physics, Univ. of Seoul
17
18#include "TGeoManager.h"
19
20void station2()
21{
22
23 TGeoManager *geom = new TGeoManager("geom", "Space Station");
24
25 TGeoMaterial *vacuum = new TGeoMaterial("vacuum", 0, 0, 0);
26 TGeoMaterial *Fe = new TGeoMaterial("Fe", 55.845, 26, 7.87);
27 TGeoMaterial *Cu = new TGeoMaterial("Cu", 63.549, 29, 8.92);
28
29 TGeoMedium *Air = new TGeoMedium("Vacuum", 0, vacuum);
30 TGeoMedium *Iron = new TGeoMedium("Iron", 1, Fe);
31 TGeoMedium *Copper = new TGeoMedium("Copper", 2, Cu);
32
33 TGeoVolume *top = geom->MakeBox("top", Air, 1000, 1000, 1000);
34 geom->SetTopVolume(top);
35 geom->SetTopVisible(false);
36 // If you want to see the boundary, please input the number, 1 instead of 0.
37 // Like this, geom->SetTopVisible(1);
38
39 TGeoVolume *b1 = geom->MakeBox("b1", Iron, 1, 2, 3);
40 b1->SetLineColor(37);
41 b1->SetFillColor(37);
42
43 TGeoVolume *b2 = geom->MakeBox("b2", Iron, 1, 2, 3);
44 b2->SetLineColor(37);
45 b2->SetFillColor(37);
46
47 TGeoVolume *b12 = geom->MakeBox("b12", Iron, 1, 2, 3);
48 b12->SetLineColor(37);
49 b12->SetFillColor(37);
50
51 TGeoVolume *b22 = geom->MakeBox("b22", Iron, 1, 2, 3);
52 b22->SetLineColor(37);
53 b22->SetFillColor(37);
54
55 TGeoVolume *b13 = geom->MakeBox("b13", Iron, 1, 2, 3);
56 b13->SetLineColor(37);
57 b13->SetFillColor(37);
58
59 TGeoVolume *b23 = geom->MakeBox("b23", Iron, 1, 2, 3);
60 b23->SetLineColor(37);
61 b23->SetFillColor(37);
62
63 TGeoVolume *b14 = geom->MakeBox("b14", Iron, 1, 2, 3);
64 b14->SetLineColor(37);
65 b14->SetFillColor(37);
66
67 TGeoVolume *b24 = geom->MakeBox("b24", Iron, 1, 2, 3);
68 b24->SetLineColor(37);
69 b24->SetFillColor(37);
70
71 TGeoVolume *b3 = geom->MakeBox("b3", Iron, 35, 1, 1);
72 b3->SetLineColor(17);
73 b3->SetFillColor(17);
74
75 TGeoVolume *b4 = geom->MakeBox("b4", Iron, 35, 1, 1);
76 b4->SetLineColor(17);
77 b4->SetFillColor(17);
78
79 TGeoVolume *b31 = geom->MakeBox("b31", Iron, 5, 5, 1);
80 b31->SetLineColor(38);
81 b31->SetFillColor(38);
82
83 TGeoVolume *b41 = geom->MakeBox("b41", Iron, 5, 5, 1);
84 b41->SetLineColor(38);
85 b41->SetFillColor(38);
86
87 TGeoVolume *b32 = geom->MakeBox("b32", Iron, 5, 5, 1);
88 b32->SetLineColor(38);
89 b32->SetFillColor(38);
90
91 TGeoVolume *b42 = geom->MakeBox("b42", Iron, 5, 5, 1);
92 b42->SetLineColor(38);
93 b42->SetFillColor(38);
94
95 TGeoVolume *b33 = geom->MakeBox("b33", Iron, 5, 5, 1);
96 b33->SetLineColor(38);
97 b33->SetFillColor(38);
98
99 TGeoVolume *b43 = geom->MakeBox("b43", Iron, 5, 5, 1);
100 b43->SetLineColor(38);
101 b43->SetFillColor(38);
102
103 TGeoVolume *b34 = geom->MakeBox("b34", Iron, 6, 7, 1);
104 b34->SetLineColor(38);
105 b34->SetFillColor(38);
106
107 TGeoVolume *b44 = geom->MakeBox("b44", Iron, 6, 7, 1);
108 b44->SetLineColor(38);
109 b44->SetFillColor(38);
110
111 TGeoVolume *b35 = geom->MakeBox("b35", Iron, 6, 7, 1);
112 b35->SetLineColor(38);
113 b35->SetFillColor(38);
114
115 TGeoVolume *b45 = geom->MakeBox("b45", Iron, 6, 7, 1);
116 b45->SetLineColor(38);
117 b45->SetFillColor(38);
118
119 TGeoVolume *b36 = geom->MakeBox("b36", Iron, 6, 7, 1);
120 b36->SetLineColor(38);
121 b36->SetFillColor(38);
122
123 TGeoVolume *b46 = geom->MakeBox("b46", Iron, 6, 7, 1);
124 b46->SetLineColor(38);
125 b46->SetFillColor(38);
126
127 TGeoVolume *b37 = geom->MakeBox("b37", Iron, 5, 5, 1);
128 b37->SetLineColor(38);
129 b37->SetFillColor(38);
130
131 TGeoVolume *b47 = geom->MakeBox("b47", Iron, 5, 5, 1);
132 b47->SetLineColor(38);
133 b47->SetFillColor(38);
134
135 TGeoVolume *b38 = geom->MakeBox("b38", Iron, 5, 5, 1);
136 b38->SetLineColor(38);
137 b38->SetFillColor(38);
138
139 TGeoVolume *b48 = geom->MakeBox("b48", Iron, 5, 5, 1);
140 b48->SetLineColor(38);
141 b48->SetFillColor(38);
142
143 TGeoVolume *b39 = geom->MakeBox("b39", Iron, 5, 5, 1);
144 b39->SetLineColor(38);
145 b39->SetFillColor(38);
146
147 TGeoVolume *b49 = geom->MakeBox("b49", Iron, 5, 5, 1);
148 b49->SetLineColor(38);
149 b49->SetFillColor(38);
150
151 TGeoVolume *b310 = geom->MakeBox("b310", Iron, 6, 7, 1);
152 b310->SetLineColor(38);
153 b310->SetFillColor(38);
154
155 TGeoVolume *b410 = geom->MakeBox("b410", Iron, 6, 7, 1);
156 b410->SetLineColor(38);
157 b410->SetFillColor(38);
158
159 TGeoVolume *b311 = geom->MakeBox("b311", Iron, 6, 7, 1);
160 b311->SetLineColor(38);
161 b311->SetFillColor(38);
162
163 TGeoVolume *b411 = geom->MakeBox("b411", Iron, 6, 7, 1);
164 b411->SetLineColor(38);
165 b411->SetFillColor(38);
166
167 TGeoVolume *b312 = geom->MakeBox("b312", Iron, 6, 7, 1);
168 b312->SetLineColor(38);
169 b312->SetFillColor(38);
170
171 TGeoVolume *b412 = geom->MakeBox("b412", Iron, 6, 7, 1);
172 b412->SetLineColor(38);
173 b412->SetFillColor(38);
174
175 TGeoVolume *b5 = geom->MakeBox("b5", Iron, 43, 1, 1);
176 b5->SetLineColor(17);
177 b5->SetFillColor(17);
178
179 TGeoVolume *b6 = geom->MakeBox("b6", Iron, 43, 1, 1);
180 b6->SetLineColor(17);
181 b6->SetFillColor(17);
182
183 TGeoVolume *b51 = geom->MakeBox("b51", Iron, 5, 5, 1);
184 b51->SetLineColor(38);
185 b51->SetFillColor(38);
186
187 TGeoVolume *b61 = geom->MakeBox("b61", Iron, 5, 5, 1);
188 b61->SetLineColor(38);
189 b61->SetFillColor(38);
190
191 TGeoVolume *b52 = geom->MakeBox("b52", Iron, 5, 5, 1);
192 b52->SetLineColor(38);
193 b52->SetFillColor(38);
194
195 TGeoVolume *b62 = geom->MakeBox("b62", Iron, 5, 5, 1);
196 b62->SetLineColor(38);
197 b62->SetFillColor(38);
198
199 TGeoVolume *b53 = geom->MakeBox("b53", Iron, 5, 5, 1);
200 b53->SetLineColor(38);
201 b53->SetFillColor(38);
202
203 TGeoVolume *b63 = geom->MakeBox("b63", Iron, 5, 5, 1);
204 b63->SetLineColor(38);
205 b63->SetFillColor(38);
206
207 TGeoVolume *b54 = geom->MakeBox("b54", Iron, 6, 7, 1);
208 b54->SetLineColor(38);
209 b54->SetFillColor(38);
210
211 TGeoVolume *b64 = geom->MakeBox("b64", Iron, 6, 7, 1);
212 b64->SetLineColor(38);
213 b64->SetFillColor(38);
214
215 TGeoVolume *b55 = geom->MakeBox("b55", Iron, 6, 7, 1);
216 b55->SetLineColor(38);
217 b55->SetFillColor(38);
218
219 TGeoVolume *b65 = geom->MakeBox("b65", Iron, 6, 7, 1);
220 b65->SetLineColor(38);
221 b65->SetFillColor(38);
222
223 TGeoVolume *b56 = geom->MakeBox("b56", Iron, 6, 7, 1);
224 b56->SetLineColor(38);
225 b56->SetFillColor(38);
226
227 TGeoVolume *b66 = geom->MakeBox("b66", Iron, 6, 7, 1);
228 b66->SetLineColor(38);
229 b66->SetFillColor(38);
230
231 TGeoVolume *b57 = geom->MakeBox("b57", Iron, 5, 5, 1);
232 b57->SetLineColor(38);
233 b57->SetFillColor(38);
234
235 TGeoVolume *b67 = geom->MakeBox("b67", Iron, 5, 5, 1);
236 b67->SetLineColor(38);
237 b67->SetFillColor(38);
238
239 TGeoVolume *b58 = geom->MakeBox("b58", Iron, 5, 5, 1);
240 b58->SetLineColor(38);
241 b58->SetFillColor(38);
242
243 TGeoVolume *b68 = geom->MakeBox("b68", Iron, 5, 5, 1);
244 b68->SetLineColor(38);
245 b68->SetFillColor(38);
246
247 TGeoVolume *b59 = geom->MakeBox("b59", Iron, 5, 5, 1);
248 b59->SetLineColor(38);
249 b59->SetFillColor(38);
250
251 TGeoVolume *b69 = geom->MakeBox("b69", Iron, 5, 5, 1);
252 b69->SetLineColor(38);
253 b69->SetFillColor(38);
254
255 TGeoVolume *b510 = geom->MakeBox("b510", Iron, 6, 7, 1);
256 b510->SetLineColor(38);
257 b510->SetFillColor(38);
258
259 TGeoVolume *b610 = geom->MakeBox("b610", Iron, 6, 7, 1);
260 b610->SetLineColor(38);
261 b610->SetFillColor(38);
262
263 TGeoVolume *b511 = geom->MakeBox("b511", Iron, 6, 7, 1);
264 b511->SetLineColor(38);
265 b511->SetFillColor(38);
266
267 TGeoVolume *b611 = geom->MakeBox("b611", Iron, 6, 7, 1);
268 b611->SetLineColor(38);
269 b611->SetFillColor(38);
270
271 TGeoVolume *b512 = geom->MakeBox("b512", Iron, 6, 7, 1);
272 b512->SetLineColor(38);
273 b512->SetFillColor(38);
274
275 TGeoVolume *b612 = geom->MakeBox("b612", Iron, 6, 7, 1);
276 b612->SetLineColor(38);
277 b612->SetFillColor(38);
278
279 TGeoVolume *b513 = geom->MakeBox("b513", Iron, 6, 7, 1);
280 b513->SetLineColor(38);
281 b513->SetFillColor(38);
282
283 TGeoVolume *b613 = geom->MakeBox("b613", Iron, 6, 7, 1);
284 b613->SetLineColor(38);
285 b613->SetFillColor(38);
286
287 TGeoVolume *b514 = geom->MakeBox("b514", Iron, 6, 7, 1);
288 b514->SetLineColor(38);
289 b514->SetFillColor(38);
290
291 TGeoVolume *b614 = geom->MakeBox("b614", Iron, 6, 7, 1);
292 b614->SetLineColor(38);
293 b614->SetFillColor(38);
294
295 TGeoVolume *b7 = geom->MakeBox("b7", Iron, 5, 8, 15);
296 b7->SetLineColor(17);
297 b7->SetFillColor(17);
298
299 TGeoVolume *b71 = geom->MakeBox("b71", Iron, 1, 34, 1);
300 b71->SetLineColor(17);
301 b71->SetFillColor(17);
302
303 TGeoVolume *b81 = geom->MakeBox("b81", Iron, 1, 34, 1);
304 b81->SetLineColor(17);
305 b81->SetFillColor(17);
306
307 TGeoVolume *b72 = geom->MakeBox("b72", Iron, 1, 6, 11);
308 b72->SetLineColor(18);
309 b72->SetFillColor(18);
310
311 TGeoVolume *b82 = geom->MakeBox("b82", Iron, 1, 6, 11);
312 b82->SetLineColor(18);
313 b82->SetFillColor(18);
314
315 TGeoVolume *b73 = geom->MakeBox("b73", Iron, 1, 6, 11);
316 b73->SetLineColor(12);
317 b73->SetFillColor(12);
318
319 TGeoVolume *b83 = geom->MakeBox("b83", Iron, 1, 6, 11);
320 b83->SetLineColor(12);
321 b83->SetFillColor(12);
322
323 TGeoVolume *b74 = geom->MakeBox("b74", Iron, 1, 6, 11);
324 b74->SetLineColor(18);
325 b74->SetFillColor(18);
326
327 TGeoVolume *b84 = geom->MakeBox("b84", Iron, 1, 6, 11);
328 b84->SetLineColor(18);
329 b84->SetFillColor(18);
330
331 TGeoVolume *b75 = geom->MakeBox("b75", Iron, 1, 6, 11);
332 b75->SetLineColor(12);
333 b75->SetFillColor(12);
334
335 TGeoVolume *b85 = geom->MakeBox("b85", Iron, 1, 6, 11);
336 b85->SetLineColor(12);
337 b85->SetFillColor(12);
338
339 TGeoVolume *b76 = geom->MakeBox("b76", Iron, 1, 6, 11);
340 b76->SetLineColor(18);
341 b76->SetFillColor(18);
342
343 TGeoVolume *b86 = geom->MakeBox("b86", Iron, 1, 6, 11);
344 b86->SetLineColor(18);
345 b86->SetFillColor(18);
346
347 TGeoVolume *b9 = geom->MakeBox("b9", Iron, 2, 7, 5);
348 b9->SetLineColor(17);
349 b9->SetFillColor(17);
350
351 TGeoVolume *b10 = geom->MakeBox("b10", Iron, 1, 20, 1);
352 b10->SetLineColor(17);
353 b10->SetFillColor(17);
354
355 TGeoVolume *b111 = geom->MakeBox("b111", Iron, 1, 20, 1);
356 b111->SetLineColor(17);
357 b111->SetFillColor(17);
358
359 TGeoVolume *b121 = geom->MakeBox("b121", Iron, 1, 20, 1);
360 b121->SetLineColor(17);
361 b121->SetFillColor(17);
362
363 TGeoVolume *b131 = geom->MakeBox("b131", Iron, 1, 20, 1);
364 b131->SetLineColor(17);
365 b131->SetFillColor(17);
366
367 TGeoVolume *n1 = geom->MakeBox("n1", Iron, 1, 6, 1);
368 n1->SetLineColor(12);
369 n1->SetFillColor(12);
370
371 TGeoVolume *n2 = geom->MakeBox("n2", Iron, 1, 6, 1);
372 n2->SetLineColor(12);
373 n2->SetFillColor(12);
374
375 TGeoVolume *n3 = geom->MakeBox("n3", Iron, 1, 6, 1);
376 n3->SetLineColor(12);
377 n3->SetFillColor(12);
378
379 TGeoVolume *n4 = geom->MakeBox("n4", Iron, 1, 6, 1);
380 n4->SetLineColor(12);
381 n4->SetFillColor(12);
382
383 TGeoVolume *n5 = geom->MakeBox("n5", Iron, 1, 1, 3);
384 n5->SetLineColor(12);
385 n5->SetFillColor(12);
386
387 TGeoVolume *n6 = geom->MakeBox("n6", Iron, 1, 6, 1);
388 n6->SetLineColor(12);
389 n6->SetFillColor(12);
390
391 TGeoVolume *n7 = geom->MakeBox("n7", Iron, 1, 6, 1);
392 n7->SetLineColor(12);
393 n7->SetFillColor(12);
394
395 TGeoVolume *n8 = geom->MakeBox("n8", Iron, 1, 1, 3);
396 n8->SetLineColor(12);
397 n8->SetFillColor(12);
398
399 TGeoVolume *n9 = geom->MakeBox("n9", Iron, 1, 6, 1);
400 n9->SetLineColor(12);
401 n9->SetFillColor(12);
402
403 TGeoVolume *sp = geom->MakeSphere("sp", Iron, 0, 10, 0, 180, 0, 360);
404 sp->SetLineColor(50);
405 sp->SetFillColor(50);
406
407 TGeoVolume *sp1 = geom->MakeSphere("sp1", Iron, 0, 50, 0, 180, 0, 360);
408 sp1->SetLineColor(9);
409 sp1->SetFillColor(9);
410
411 TGeoVolume *sp2 = geom->MakeSphere("sp2", Iron, 0, 2, 0, 180, 0, 360);
412 sp2->SetLineColor(2);
413 sp2->SetFillColor(2);
414
415 TGeoVolume *sp3 = geom->MakeSphere("sp3", Iron, 0, 2, 0, 180, 0, 360);
416 sp3->SetLineColor(4);
417 sp3->SetFillColor(4);
418
419 TGeoVolume *tbs = geom->MakeTubs("tbs", Iron, 0, 3, 120, 0, 360);
420 tbs->SetLineColor(10);
421 tbs->SetFillColor(10);
422
423 TGeoVolume *tbs1 = geom->MakeTubs("tbs1", Iron, 3, 5, 15, 0, 360);
424 tbs1->SetLineColor(17);
425 tbs1->SetFillColor(17);
426
427 TGeoVolume *tbs2 = geom->MakeTubs("tbs2", Iron, 3, 15, 30, 0, 360);
428 tbs2->SetLineColor(17);
429 tbs2->SetFillColor(17);
430
431 TGeoVolume *tbs3 = geom->MakeTubs("tbs3", Iron, 3, 10, 10, 0, 360);
432 tbs3->SetLineColor(17);
433 tbs3->SetFillColor(17);
434
435 TGeoVolume *tbs4 = geom->MakeTubs("tbs4", Iron, 3, 7, 10, 0, 360);
436 tbs4->SetLineColor(18);
437 tbs4->SetFillColor(18);
438
439 TGeoVolume *tbs5 = geom->MakeTubs("tbs5", Iron, 3, 13, 20, 0, 360);
440 tbs5->SetLineColor(17);
441 tbs5->SetFillColor(17);
442
443 TGeoVolume *tbs6 = geom->MakeTubs("tbs6", Iron, 3, 7, 10, 0, 360);
444 tbs6->SetLineColor(18);
445 tbs6->SetFillColor(18);
446
447 TGeoVolume *tbs7 = geom->MakeTubs("tbs7", Iron, 3, 15, 22, 0, 360);
448 tbs7->SetLineColor(15);
449 tbs7->SetFillColor(15);
450
451 TGeoVolume *tbs8 = geom->MakeTubs("tbs8", Iron, 0, 10, 5, 0, 360);
452 tbs8->SetLineColor(17);
453 tbs8->SetFillColor(17);
454
455 TGeoVolume *tbs9 = geom->MakeTubs("tbs9", Iron, 0, 15, 5, 0, 360);
456 tbs9->SetLineColor(15);
457 tbs9->SetFillColor(15);
458
459 TGeoVolume *tbs10 = geom->MakeTubs("tbs10", Iron, 4, 6, 8, 0, 360);
460 tbs10->SetLineColor(15);
461 tbs10->SetFillColor(15);
462
463 TGeoVolume *tbs11 = geom->MakeTubs("tbs11", Iron, 0, 4, 6, 0, 360);
464 tbs11->SetLineColor(17);
465 tbs11->SetFillColor(17);
466
467 TGeoVolume *tbs12 = geom->MakeTubs("tbs12", Iron, 0, 4, 6, 0, 360);
468 tbs12->SetLineColor(17);
469 tbs12->SetFillColor(17);
470
471 TGeoVolume *tbs13 = geom->MakeTubs("tbs13", Iron, 1.7, 3.7, 1, -90, 180);
472 tbs13->SetLineColor(12);
473 tbs13->SetFillColor(12);
474
475 TGeoVolume *tbs14 = geom->MakeTubs("tbs14", Iron, 1.7, 3.7, 1, 90, 0);
476 tbs14->SetLineColor(12);
477 tbs14->SetFillColor(12);
478
479 TGeoVolume *tbs15 = geom->MakeTubs("tbs15", Iron, 14, 15.2, 9, 0, 360);
480 tbs15->SetLineColor(10);
481 tbs15->SetFillColor(10);
482
483 TGeoVolume *tbs16 = geom->MakeTubs("tbs16", Iron, 14, 15.2, 12, 0, 360);
484 tbs16->SetLineColor(10);
485 tbs16->SetFillColor(10);
486
487 TGeoVolume *tbs18 = geom->MakeTubs("tbs18", Iron, 14, 15.2, 9, 80, 100);
488 tbs18->SetLineColor(13);
489 tbs18->SetFillColor(13);
490
491 TGeoVolume *tbs19 = geom->MakeTubs("tbs19", Iron, 14, 15.2, 9, 80, 100);
492 tbs19->SetLineColor(13);
493 tbs19->SetFillColor(13);
494
495 TGeoVolume *tbs20 = geom->MakeTubs("tbs20", Iron, 12, 13.2, 14, 80, 100);
496 tbs20->SetLineColor(13);
497 tbs20->SetFillColor(13);
498
499 TGeoVolume *tbs21 = geom->MakeTubs("tbs21", Iron, 12, 13.2, 14, 80, 100);
500 tbs21->SetLineColor(13);
501 tbs21->SetFillColor(13);
502
503 TGeoVolume *tbs22 = geom->MakeTubs("tbs22", Iron, 14, 15.2, 12, 80, 100);
504 tbs22->SetLineColor(13);
505 tbs22->SetFillColor(13);
506
507 TGeoVolume *tbs23 = geom->MakeTubs("tbs23", Iron, 14, 15.2, 12, 80, 100);
508 tbs23->SetLineColor(13);
509 tbs23->SetFillColor(13);
510
511 TGeoVolume *Cone = geom->MakeCone("Cone", Copper, 3, 3, 10, 3, 15);
512 Cone->SetLineColor(17);
513 Cone->SetFillColor(17);
514
515 TGeoVolume *Cone1 = geom->MakeCone("Cone1", Copper, 3, 3, 5, 3, 15);
516 Cone1->SetLineColor(17);
517 Cone1->SetFillColor(17);
518
519 TGeoVolume *Cone2 = geom->MakeCone("Cone2", Copper, 3, 3, 13, 3, 7);
520 Cone2->SetLineColor(17);
521 Cone2->SetFillColor(17);
522
523 TGeoVolume *Cone3 = geom->MakeCone("Cone3", Copper, 3, 3, 10, 3, 7);
524 Cone3->SetLineColor(17);
525 Cone3->SetFillColor(17);
526
527 TGeoVolume *Cone4 = geom->MakeCone("Cone4", Copper, 3, 3, 7, 3, 13);
528 Cone4->SetLineColor(17);
529 Cone4->SetFillColor(17);
530
531 TGeoVolume *Cone5 = geom->MakeCone("Cone5", Copper, 3, 3, 15, 3, 7);
532 Cone5->SetLineColor(15);
533 Cone5->SetFillColor(15);
534
535 TGeoVolume *Cone6 = geom->MakeCone("Cone6", Copper, 8, 0, 8, 0, 8);
536 Cone6->SetLineColor(17);
537 Cone6->SetFillColor(17);
538
539 TGeoVolume *Cone7 = geom->MakeCone("Cone7", Copper, 1, 3, 5, 3, 6);
540 Cone7->SetLineColor(18);
541 Cone7->SetFillColor(18);
542
543 TGeoVolume *Cone8 = geom->MakeCone("Cone8", Copper, 3, 3, 15, 3, 7);
544 Cone8->SetLineColor(15);
545 Cone8->SetFillColor(15);
546
547 TGeoVolume *Cone9 = geom->MakeCone("Cone9", Copper, 1, 3, 5, 3, 6);
548 Cone9->SetLineColor(12);
549 Cone9->SetFillColor(12);
550
551 TGeoVolume *Cone10 = geom->MakeCone("Cone10", Copper, 1, 3, 5, 3, 6);
552 Cone10->SetLineColor(12);
553 Cone10->SetFillColor(12);
554
555 TGeoVolume *Cone11 = geom->MakeCone("Cone11", Copper, 1, 3, 5, 3, 6);
556 Cone11->SetLineColor(14);
557 Cone11->SetFillColor(14);
558
559 TGeoVolume *Cone12 = geom->MakeCone("Cone12", Copper, 1, 3, 5, 3, 6);
560 Cone12->SetLineColor(14);
561 Cone12->SetFillColor(14);
562
563 TGeoVolume *a1 = geom->MakeBox("a1", Iron, 2, 1, 2);
564 a1->SetLineColor(10);
565 a1->SetFillColor(10);
566 top->AddNodeOverlap(a1, 1, new TGeoCombiTrans(0, 15, 98, new TGeoRotation("a1", 0, 30, 0)));
567
568 TGeoVolume *a2 = geom->MakeBox("a2", Iron, 2, 1, 2);
569 a2->SetLineColor(10);
570 a2->SetFillColor(10);
571 top->AddNodeOverlap(a2, 1, new TGeoCombiTrans(0, 15, 90, new TGeoRotation("a2", 0, 0, 0)));
572
573 TGeoVolume *a3 = geom->MakeBox("a3", Iron, 2, 1, 2);
574 a3->SetLineColor(10);
575 a3->SetFillColor(10);
576 top->AddNodeOverlap(a3, 1, new TGeoCombiTrans(0, 15, 85, new TGeoRotation("a3", 0, 0, 0)));
577
578 TGeoVolume *a4 = geom->MakeBox("a4", Iron, 2, 1, 2);
579 a4->SetLineColor(10);
580 a4->SetFillColor(10);
581 top->AddNodeOverlap(a4, 1, new TGeoCombiTrans(3, 14, 76, new TGeoRotation("a4", 0, 0, 0)));
582
583 TGeoVolume *a5 = geom->MakeBox("a5", Iron, 2, 1, 2);
584 a5->SetLineColor(10);
585 a5->SetFillColor(10);
586 top->AddNodeOverlap(a5, 1, new TGeoCombiTrans(-7, 13, 75, new TGeoRotation("a5", 0, 0, 0)));
587
588 TGeoVolume *a6 = geom->MakeBox("a6", Iron, 2, 1, 2);
589 a6->SetLineColor(10);
590 a6->SetFillColor(10);
591 top->AddNodeOverlap(a6, 1, new TGeoCombiTrans(-7, 13, 71, new TGeoRotation("a6", 0, 0, 0)));
592
593 TGeoVolume *a7 = geom->MakeBox("a7", Iron, 2, 1, 2);
594 a7->SetLineColor(10);
595 a7->SetFillColor(10);
596 top->AddNodeOverlap(a7, 1, new TGeoCombiTrans(-6, 13, 66, new TGeoRotation("a7", 0, 40, 0)));
597
598 TGeoVolume *a8 = geom->MakeBox("a8", Iron, 2, 1, 2);
599 a8->SetLineColor(10);
600 a8->SetFillColor(10);
601 top->AddNodeOverlap(a8, 1, new TGeoCombiTrans(-7, 13, 60, new TGeoRotation("a8", 0, 0, 0)));
602
603 TGeoVolume *a9 = geom->MakeBox("a9", Iron, 2, 1, 2);
604 a9->SetLineColor(10);
605 a9->SetFillColor(10);
606 top->AddNodeOverlap(a9, 1, new TGeoCombiTrans(3, 12, -1, new TGeoRotation("a9", 0, 0, 0)));
607
608 TGeoVolume *a10 = geom->MakeBox("a12", Iron, 2, 1, 2);
609 a10->SetLineColor(10);
610 a10->SetFillColor(10);
611 top->AddNodeOverlap(a10, 1, new TGeoCombiTrans(2, 12, -6, new TGeoRotation("a5", 0, 0, 0)));
612
613 TGeoVolume *a11 = geom->MakeBox("a11", Iron, 2, 1, 2);
614 a11->SetLineColor(10);
615 a11->SetFillColor(10);
616 top->AddNodeOverlap(a11, 1, new TGeoCombiTrans(-3, 12, -20, new TGeoRotation("a6", 20, 0, 0)));
617
618 TGeoVolume *a12 = geom->MakeBox("a12", Iron, 2, 1, 2);
619 a12->SetLineColor(10);
620 a12->SetFillColor(10);
621 top->AddNodeOverlap(a12, 1, new TGeoCombiTrans(-1, 12, -25, new TGeoRotation("a7", 0, 40, 0)));
622
623 TGeoVolume *a13 = geom->MakeBox("a13", Iron, 2, 1, 2);
624 a13->SetLineColor(10);
625 a13->SetFillColor(10);
626 top->AddNodeOverlap(a13, 1, new TGeoCombiTrans(-3, 12, -29, new TGeoRotation("a8", 0, 0, 0)));
627
628 TGeoVolume *a14 = geom->MakeTubs("a14", Iron, 0, 1, 20, 0, 360);
629 a14->SetLineColor(36);
630 a14->SetFillColor(36);
631 top->AddNodeOverlap(a14, 1, new TGeoCombiTrans(7.5, 7.5, 20, new TGeoRotation("a8", 0, 0, 0)));
632
633 TGeoVolume *a15 = geom->MakeTubs("a15", Iron, 0, 1, 20, 0, 360);
634 a15->SetLineColor(36);
635 a15->SetFillColor(36);
636 top->AddNodeOverlap(a15, 1, new TGeoCombiTrans(-7.5, 7.5, 20, new TGeoRotation("a8", 0, 0, 0)));
637
638 TGeoVolume *a16 = geom->MakeTubs("a16", Iron, 0, 1, 20, 0, 360);
639 a16->SetLineColor(36);
640 a16->SetFillColor(36);
641 top->AddNodeOverlap(a16, 1, new TGeoCombiTrans(7.5, -7.5, 20, new TGeoRotation("a8", 0, 0, 0)));
642
643 TGeoVolume *a17 = geom->MakeTubs("a17", Iron, 0, 1, 20, 0, 360);
644 a17->SetLineColor(36);
645 a17->SetFillColor(36);
646 top->AddNodeOverlap(a17, 1, new TGeoCombiTrans(-7.5, -7.5, 20, new TGeoRotation("a8", 0, 0, 0)));
647
648 TGeoVolume *a18 = geom->MakeTubs("a18", Iron, 0, 1, 20, 0, 360);
649 a18->SetLineColor(36);
650 a18->SetFillColor(36);
651 top->AddNodeOverlap(a18, 1, new TGeoCombiTrans(7.5, 7.5, -50, new TGeoRotation("a8", 0, 0, 0)));
652
653 TGeoVolume *a19 = geom->MakeTubs("a19", Iron, 0, 1, 20, 0, 360);
654 a19->SetLineColor(36);
655 a19->SetFillColor(36);
656 top->AddNodeOverlap(a19, 1, new TGeoCombiTrans(-7.5, 7.5, -50, new TGeoRotation("a8", 0, 0, 0)));
657
658 TGeoVolume *a20 = geom->MakeTubs("a20", Iron, 0, 1, 20, 0, 360);
659 a20->SetLineColor(36);
660 a20->SetFillColor(36);
661 top->AddNodeOverlap(a20, 1, new TGeoCombiTrans(7.5, -7.5, -50, new TGeoRotation("a8", 0, 0, 0)));
662
663 TGeoVolume *a21 = geom->MakeTubs("a21", Iron, 0, 1, 20, 0, 360);
664 a21->SetLineColor(36);
665 a21->SetFillColor(36);
666 top->AddNodeOverlap(a21, 1, new TGeoCombiTrans(-7.5, -7.5, -50, new TGeoRotation("a8", 0, 0, 0)));
667
668 TGeoVolume *a22 = geom->MakeTubs("a22", Iron, 3, 4, 3, 0, 360);
669 a22->SetLineColor(10);
670 a22->SetFillColor(10);
671 top->AddNodeOverlap(a22, 1, new TGeoCombiTrans(14, 6, 97, new TGeoRotation("a22", 110, 90, 0)));
672
673 TGeoVolume *a23 = geom->MakeTubs("a23", Iron, 3, 4, 3, 0, 360);
674 a23->SetLineColor(14);
675 a23->SetFillColor(14);
676 top->AddNodeOverlap(a23, 1, new TGeoCombiTrans(0, -7, 14, new TGeoRotation("a22", 180, 90, 0)));
677
678 TGeoVolume *Cone15 = geom->MakeCone("Cone15", Copper, 1, 3, 4, 4, 5);
679 Cone15->SetLineColor(14);
680 Cone15->SetFillColor(14);
681 top->AddNodeOverlap(Cone15, 1, new TGeoCombiTrans(0, -11, 14, new TGeoRotation("a23", 0, 90, 0)));
682
683 TGeoVolume *a24 = geom->MakeTubs("a24", Iron, 3, 4, 3, 0, 360);
684 a24->SetLineColor(14);
685 a24->SetFillColor(14);
686 top->AddNodeOverlap(a24, 1, new TGeoCombiTrans(0, -7, -46, new TGeoRotation("a23", 180, 90, 0)));
687
688 TGeoVolume *a25 = geom->MakeTubs("a25", Iron, 3, 5, 8, 0, 360);
689 a25->SetLineColor(18);
690 a25->SetFillColor(18);
691 top->AddNodeOverlap(a25, 1, new TGeoCombiTrans(0, -20, -46, new TGeoRotation("a23", 180, 90, 0)));
692
693 TGeoVolume *Cone13 = geom->MakeCone("Cone13", Copper, 1, 3, 4, 4, 5);
694 Cone13->SetLineColor(14);
695 Cone13->SetFillColor(14);
696 top->AddNodeOverlap(Cone13, 1, new TGeoCombiTrans(0, -11, -46, new TGeoRotation("a23", 0, 90, 0)));
697
698 TGeoVolume *Cone14 = geom->MakeCone("Cone14", Copper, 1, 3, 4, 4, 5);
699 Cone14->SetLineColor(14);
700 Cone14->SetFillColor(14);
701 top->AddNodeOverlap(Cone14, 1, new TGeoCombiTrans(0, -29, -46, new TGeoRotation("a23", 0, 270, 0)));
702
703 TGeoVolume *sp4 = geom->MakeSphere("sp4", Iron, 0, 4, 0, 180, 0, 360);
704 sp4->SetLineColor(10);
705 sp4->SetFillColor(10);
706 top->AddNodeOverlap(sp4, 1, new TGeoCombiTrans(0, -32, -46, new TGeoRotation("a23", 0, 0, 0)));
707
708 TGeoVolume *Cone16 = geom->MakeCone("Cone16", Copper, 1, 3, 4, 4, 5);
709 Cone16->SetLineColor(14);
710 Cone16->SetFillColor(14);
711 top->AddNodeOverlap(Cone16, 1, new TGeoCombiTrans(-1, -35, -46, new TGeoRotation("a23", -30, 80, 0)));
712
713 TGeoVolume *a26 = geom->MakeTubs("a26", Iron, 3, 5, 12, 0, 360);
714 a26->SetLineColor(18);
715 a26->SetFillColor(18);
716 top->AddNodeOverlap(a26, 1, new TGeoCombiTrans(-7.5, -46, -43.5, new TGeoRotation("a23", -30, 80, 0)));
717
718 TGeoVolume *Cone17 = geom->MakeCone("Cone17", Copper, 1, 3, 4, 4, 5);
719 Cone17->SetLineColor(14);
720 Cone17->SetFillColor(14);
721 top->AddNodeOverlap(Cone17, 1, new TGeoCombiTrans(-13.7, -57, -41.2, new TGeoRotation("a23", -30, 260, 0)));
722
723 TGeoVolume *a27 = geom->MakeTubs("a27", Iron, 4, 6, 12, 0, 360);
724 a27->SetLineColor(18);
725 a27->SetFillColor(18);
726 top->AddNodeOverlap(a27, 1, new TGeoCombiTrans(23.2, 0, 31, new TGeoRotation("a23", 90, 90, 0)));
727
728 TGeoVolume *Cone18 = geom->MakeCone("Cone18", Copper, 1, 3, 5, 3, 6);
729 Cone18->SetLineColor(14);
730 Cone18->SetFillColor(14);
731 top->AddNodeOverlap(Cone18, 1, new TGeoCombiTrans(36, 0, 31, new TGeoRotation("c34", 270, 90, 0)));
732
733 char nBlocks[50];
734 int i = 1;
735 int N = 0;
736 int f = 0;
737 TGeoVolume *mBlock;
738
739 f = 0;
740 while (f < 4) {
741 i = 0;
742 while (i < 30) {
743 sprintf(nBlocks, "f%d_bg%d", f, N++);
744 mBlock = geom->MakeBox(nBlocks, Copper, 2, 1, 3);
745 mBlock->SetLineColor(46);
746 top->AddNodeOverlap(mBlock, 1,
747 new TGeoCombiTrans(15 + (i * 5), 75, -65 + (f * 7), new TGeoRotation("z", 0, 0, 0)));
748 i++;
749 }
750 f++;
751 }
752
753 TGeoVolume *mBlock1;
754
755 f = 0;
756 while (f < 4) {
757 i = 0;
758 while (i < 30) {
759 sprintf(nBlocks, "f%d_bg%d", f, N++);
760 mBlock1 = geom->MakeBox(nBlocks, Copper, 2, 1, 3);
761 mBlock1->SetLineColor(46);
762 top->AddNodeOverlap(mBlock1, 1,
763 new TGeoCombiTrans(14 + (i * 5), 75, -100 + (f * 7), new TGeoRotation("z", 0, 0, 0)));
764 i++;
765 }
766 f++;
767 }
768
769 TGeoVolume *mBlock2;
770
771 f = 0;
772 while (f < 4) {
773 i = 0;
774 while (i < 30) {
775 sprintf(nBlocks, "f%d_bg%d", f, N++);
776 mBlock2 = geom->MakeBox(nBlocks, Copper, 2, 1, 3);
777 mBlock2->SetLineColor(46);
778 top->AddNodeOverlap(mBlock2, 1,
779 new TGeoCombiTrans(-160 + (i * 5), 75, -75 + (f * 7), new TGeoRotation("z", 0, 0, 0)));
780 i++;
781 }
782 f++;
783 }
784
785 TGeoVolume *mBlock3;
786
787 f = 0;
788 while (f < 4) {
789 i = 0;
790 while (i < 30) {
791 sprintf(nBlocks, "f%d_bg%d", f, N++);
792 mBlock3 = geom->MakeBox(nBlocks, Copper, 2, 1, 3);
793 mBlock3->SetLineColor(46);
794 top->AddNodeOverlap(mBlock3, 1,
795 new TGeoCombiTrans(-160 + (i * 5), 75, -110 + (f * 7), new TGeoRotation("z", 0, 0, 0)));
796 i++;
797 }
798 f++;
799 }
800
801 top->AddNodeOverlap(b1, 1, new TGeoCombiTrans(5, 5, 130, new TGeoRotation("b1", 0, 0, -45)));
802 top->AddNodeOverlap(b2, 1, new TGeoCombiTrans(-5, -5, 130, new TGeoRotation("b2", 0, 0, -45)));
803 top->AddNodeOverlap(b12, 1, new TGeoCombiTrans(8.2, 8.2, 130, new TGeoRotation("b12", 0, 0, -45)));
804 top->AddNodeOverlap(b22, 1, new TGeoCombiTrans(-8.2, -8.2, 130, new TGeoRotation("b22", 0, 0, -45)));
805 top->AddNodeOverlap(b13, 1, new TGeoCombiTrans(11.4, 11.4, 130, new TGeoRotation("b13", 0, 0, -45)));
806 top->AddNodeOverlap(b23, 1, new TGeoCombiTrans(-11.4, -11.4, 130, new TGeoRotation("b23", 0, 0, -45)));
807 top->AddNodeOverlap(b14, 1, new TGeoCombiTrans(14.6, 14.6, 130, new TGeoRotation("b14", 0, 0, -45)));
808 top->AddNodeOverlap(b24, 1, new TGeoCombiTrans(-14.6, -14.6, 130, new TGeoRotation("b24", 0, 0, -45)));
809 top->AddNodeOverlap(b3, 1, new TGeoCombiTrans(50, 0, 71, new TGeoRotation("b3", 0, -30, 0)));
810 top->AddNodeOverlap(b4, 1, new TGeoCombiTrans(-50, 0, 71, new TGeoRotation("b4", 0, -30, 0)));
811 top->AddNodeOverlap(b31, 1, new TGeoCombiTrans(20, 5, 68, new TGeoRotation("b31", 0, -30, 0)));
812 top->AddNodeOverlap(b41, 1, new TGeoCombiTrans(-20, 5, 68, new TGeoRotation("b41", 0, -30, 0)));
813 top->AddNodeOverlap(b32, 1, new TGeoCombiTrans(31, 5, 68, new TGeoRotation("b32", 0, -30, 0)));
814 top->AddNodeOverlap(b42, 1, new TGeoCombiTrans(-31, 5, 68, new TGeoRotation("b42", 0, -30, 0)));
815 top->AddNodeOverlap(b33, 1, new TGeoCombiTrans(42, 5, 68, new TGeoRotation("b33", 0, -30, 0)));
816 top->AddNodeOverlap(b43, 1, new TGeoCombiTrans(-42, 5, 68, new TGeoRotation("b43", 0, -30, 0)));
817 top->AddNodeOverlap(b34, 1, new TGeoCombiTrans(54, 7, 67, new TGeoRotation("b34", 0, -30, 0)));
818 top->AddNodeOverlap(b44, 1, new TGeoCombiTrans(-54, 7, 67, new TGeoRotation("b44", 0, -30, 0)));
819 top->AddNodeOverlap(b35, 1, new TGeoCombiTrans(67, 7, 67, new TGeoRotation("b35", 0, -30, 0)));
820 top->AddNodeOverlap(b45, 1, new TGeoCombiTrans(-67, 7, 67, new TGeoRotation("b45", 0, -30, 0)));
821 top->AddNodeOverlap(b36, 1, new TGeoCombiTrans(80, 7, 67, new TGeoRotation("b36", 0, -30, 0)));
822 top->AddNodeOverlap(b46, 1, new TGeoCombiTrans(-80, 7, 67, new TGeoRotation("b46", 0, -30, 0)));
823 top->AddNodeOverlap(b37, 1, new TGeoCombiTrans(20, -5, 74, new TGeoRotation("b37", 0, -30, 0)));
824 top->AddNodeOverlap(b47, 1, new TGeoCombiTrans(-20, -5, 74, new TGeoRotation("b47", 0, -30, 0)));
825 top->AddNodeOverlap(b38, 1, new TGeoCombiTrans(31, -5, 74, new TGeoRotation("b38", 0, -30, 0)));
826 top->AddNodeOverlap(b48, 1, new TGeoCombiTrans(-31, -5, 74, new TGeoRotation("b48", 0, -30, 0)));
827 top->AddNodeOverlap(b39, 1, new TGeoCombiTrans(42, -5, 74, new TGeoRotation("b39", 0, -30, 0)));
828 top->AddNodeOverlap(b49, 1, new TGeoCombiTrans(-42, -5, 74, new TGeoRotation("b49", 0, -30, 0)));
829 top->AddNodeOverlap(b310, 1, new TGeoCombiTrans(54, -7, 75, new TGeoRotation("b310", 0, -30, 0)));
830 top->AddNodeOverlap(b410, 1, new TGeoCombiTrans(-54, -7, 75, new TGeoRotation("b410", 0, -30, 0)));
831 top->AddNodeOverlap(b311, 1, new TGeoCombiTrans(67, -7, 75, new TGeoRotation("b311", 0, -30, 0)));
832 top->AddNodeOverlap(b411, 1, new TGeoCombiTrans(-67, -7, 75, new TGeoRotation("b411", 0, -30, 0)));
833 top->AddNodeOverlap(b312, 1, new TGeoCombiTrans(80, -7, 75, new TGeoRotation("b312", 0, -30, 0)));
834 top->AddNodeOverlap(b412, 1, new TGeoCombiTrans(-80, -7, 75, new TGeoRotation("b412", 0, -30, 0)));
835 top->AddNodeOverlap(b5, 1, new TGeoCombiTrans(55, 0, -15, new TGeoRotation("b5", 0, -30, 0)));
836 top->AddNodeOverlap(b6, 1, new TGeoCombiTrans(-55, 0, -15, new TGeoRotation("b6", 0, -30, 0)));
837 top->AddNodeOverlap(b51, 1, new TGeoCombiTrans(20, 5, -18, new TGeoRotation("b51", 0, -30, 0)));
838 top->AddNodeOverlap(b61, 1, new TGeoCombiTrans(-20, 5, -18, new TGeoRotation("b61", 0, -30, 0)));
839 top->AddNodeOverlap(b52, 1, new TGeoCombiTrans(31, 5, -18, new TGeoRotation("b52", 0, -30, 0)));
840 top->AddNodeOverlap(b62, 1, new TGeoCombiTrans(-31, 5, -18, new TGeoRotation("b62", 0, -30, 0)));
841 top->AddNodeOverlap(b53, 1, new TGeoCombiTrans(42, 5, -18, new TGeoRotation("b53", 0, -30, 0)));
842 top->AddNodeOverlap(b63, 1, new TGeoCombiTrans(-42, 5, -18, new TGeoRotation("b63", 0, -30, 0)));
843 top->AddNodeOverlap(b54, 1, new TGeoCombiTrans(54, 7, -19, new TGeoRotation("b54", 0, -30, 0)));
844 top->AddNodeOverlap(b64, 1, new TGeoCombiTrans(-54, 7, -19, new TGeoRotation("b64", 0, -30, 0)));
845 top->AddNodeOverlap(b55, 1, new TGeoCombiTrans(67, 7, -19, new TGeoRotation("b55", 0, -30, 0)));
846 top->AddNodeOverlap(b65, 1, new TGeoCombiTrans(-67, 7, -19, new TGeoRotation("b65", 0, -30, 0)));
847 top->AddNodeOverlap(b56, 1, new TGeoCombiTrans(80, 7, -19, new TGeoRotation("b56", 0, -30, 0)));
848 top->AddNodeOverlap(b66, 1, new TGeoCombiTrans(-80, 7, -19, new TGeoRotation("b66", 0, -30, 0)));
849 top->AddNodeOverlap(b514, 1, new TGeoCombiTrans(93, 7, -19, new TGeoRotation("b514", 0, -30, 0)));
850 top->AddNodeOverlap(b614, 1, new TGeoCombiTrans(-93, 7, -19, new TGeoRotation("b614", 0, -30, 0)));
851 top->AddNodeOverlap(b57, 1, new TGeoCombiTrans(20, -5, -12, new TGeoRotation("b57", 0, -30, 0)));
852 top->AddNodeOverlap(b67, 1, new TGeoCombiTrans(-20, -5, -12, new TGeoRotation("b67", 0, -30, 0)));
853 top->AddNodeOverlap(b58, 1, new TGeoCombiTrans(31, -5, -12, new TGeoRotation("b58", 0, -30, 0)));
854 top->AddNodeOverlap(b68, 1, new TGeoCombiTrans(-31, -5, -12, new TGeoRotation("b68", 0, -30, 0)));
855 top->AddNodeOverlap(b59, 1, new TGeoCombiTrans(42, -5, -12, new TGeoRotation("b59", 0, -30, 0)));
856 top->AddNodeOverlap(b69, 1, new TGeoCombiTrans(-42, -5, -12, new TGeoRotation("b69", 0, -30, 0)));
857 top->AddNodeOverlap(b510, 1, new TGeoCombiTrans(54, -7, -11, new TGeoRotation("b510", 0, -30, 0)));
858 top->AddNodeOverlap(b610, 1, new TGeoCombiTrans(-54, -7, -11, new TGeoRotation("b610", 0, -30, 0)));
859 top->AddNodeOverlap(b511, 1, new TGeoCombiTrans(67, -7, -11, new TGeoRotation("b511", 0, -30, 0)));
860 top->AddNodeOverlap(b611, 1, new TGeoCombiTrans(-67, -7, -11, new TGeoRotation("b611", 0, -30, 0)));
861 top->AddNodeOverlap(b512, 1, new TGeoCombiTrans(80, -7, -11, new TGeoRotation("b512", 0, -30, 0)));
862 top->AddNodeOverlap(b612, 1, new TGeoCombiTrans(-80, -7, -11, new TGeoRotation("b612", 0, -30, 0)));
863 top->AddNodeOverlap(b513, 1, new TGeoCombiTrans(93, -7, -11, new TGeoRotation("b513", 0, -30, 0)));
864 top->AddNodeOverlap(b613, 1, new TGeoCombiTrans(-93, -7, -11, new TGeoRotation("b613", 0, -30, 0)));
865 top->AddNodeOverlap(b7, 1, new TGeoCombiTrans(0, 40, -80, new TGeoRotation("b7", 0, 90, 0)));
866 top->AddNodeOverlap(b71, 1, new TGeoCombiTrans(0, 40, -38, new TGeoRotation("b71", 0, 90, 0)));
867 top->AddNodeOverlap(b81, 1, new TGeoCombiTrans(0, 57, -122, new TGeoRotation("b81", 0, 90, 0)));
868 top->AddNodeOverlap(b72, 1, new TGeoCombiTrans(0, 40, -62, new TGeoRotation("b72", 0, 90, 0)));
869 top->AddNodeOverlap(b82, 1, new TGeoCombiTrans(0, 57, -98, new TGeoRotation("b82", 0, 90, 0)));
870 top->AddNodeOverlap(b73, 1, new TGeoCombiTrans(0, 40, -49, new TGeoRotation("b73", 0, 90, 0)));
871 top->AddNodeOverlap(b83, 1, new TGeoCombiTrans(0, 57, -111, new TGeoRotation("b83", 0, 90, 0)));
872 top->AddNodeOverlap(b74, 1, new TGeoCombiTrans(0, 40, -36, new TGeoRotation("b74", 0, 90, 0)));
873 top->AddNodeOverlap(b84, 1, new TGeoCombiTrans(0, 57, -124, new TGeoRotation("b84", 0, 90, 0)));
874 top->AddNodeOverlap(b75, 1, new TGeoCombiTrans(0, 40, -23, new TGeoRotation("b75", 0, 90, 0)));
875 top->AddNodeOverlap(b85, 1, new TGeoCombiTrans(0, 57, -137, new TGeoRotation("b85", 0, 90, 0)));
876 top->AddNodeOverlap(b76, 1, new TGeoCombiTrans(0, 40, -10, new TGeoRotation("b76", 0, 90, 0)));
877 top->AddNodeOverlap(b86, 1, new TGeoCombiTrans(0, 57, -150, new TGeoRotation("b86", 0, 90, 0)));
878 top->AddNodeOverlap(b9, 1, new TGeoCombiTrans(0, 75, -80, new TGeoRotation("b9", 0, 90, 0)));
879 top->AddNodeOverlap(b10, 1, new TGeoCombiTrans(12, 75, -72, new TGeoRotation("b10", 0, 90, 0)));
880 top->AddNodeOverlap(b111, 1, new TGeoCombiTrans(163, 75, -72, new TGeoRotation("b111", 0, 90, 0)));
881 top->AddNodeOverlap(b121, 1, new TGeoCombiTrans(-12, 75, -82, new TGeoRotation("b121", 0, 90, 0)));
882 top->AddNodeOverlap(b131, 1, new TGeoCombiTrans(-163, 75, -82, new TGeoRotation("b131", 0, 90, 0)));
883 top->AddNodeOverlap(n1, 1, new TGeoCombiTrans(-15, 0, -97, new TGeoRotation("n1", 0, 0, 0)));
884 top->AddNodeOverlap(n2, 1, new TGeoCombiTrans(-15, 0, -94, new TGeoRotation("n2", 0, -25, 0)));
885 top->AddNodeOverlap(n3, 1, new TGeoCombiTrans(-15, 0, -91, new TGeoRotation("n3", 0, 0, 0)));
886 top->AddNodeOverlap(n4, 1, new TGeoCombiTrans(-15, 0, -85, new TGeoRotation("n4", 0, 15, 0)));
887 top->AddNodeOverlap(n5, 1, new TGeoCombiTrans(-15, -2, -83, new TGeoRotation("n5", 0, 0, 0)));
888 top->AddNodeOverlap(n6, 1, new TGeoCombiTrans(-15, 0, -81, new TGeoRotation("n6", 0, -15, 0)));
889 top->AddNodeOverlap(n7, 1, new TGeoCombiTrans(-15, 0, -65, new TGeoRotation("n7", 0, 15, 0)));
890 top->AddNodeOverlap(n8, 1, new TGeoCombiTrans(-15, -2, -63, new TGeoRotation("n8", 0, 0, 0)));
891 top->AddNodeOverlap(n9, 1, new TGeoCombiTrans(-15, 0, -61, new TGeoRotation("n9", 0, -15, 0)));
892 top->AddNodeOverlap(sp, 1, new TGeoTranslation(100, 100, 150));
893 top->AddNodeOverlap(sp1, 1, new TGeoTranslation(-100, -100, -150));
894 top->AddNodeOverlap(sp2, 1, new TGeoCombiTrans(0, 80, -85, new TGeoRotation("sp1", 0, 0, 0)));
895 top->AddNodeOverlap(sp3, 1, new TGeoCombiTrans(0, 80, -75, new TGeoRotation("sp3", 0, 0, 0)));
896 top->AddNodeOverlap(tbs, 1, new TGeoCombiTrans(0, 0, 14, new TGeoRotation("r1", 0, 0, 0)));
897 top->AddNodeOverlap(tbs1, 1, new TGeoCombiTrans(0, 0, 118, new TGeoRotation("r2", 0, 0, 0)));
898 top->AddNodeOverlap(tbs2, 1, new TGeoCombiTrans(0, 0, 74, new TGeoRotation("r3", 0, 0, 0)));
899 top->AddNodeOverlap(tbs3, 1, new TGeoCombiTrans(0, 0, 34, new TGeoRotation("r4", 0, 0, 0)));
900 top->AddNodeOverlap(tbs4, 1, new TGeoCombiTrans(0, 0, 14, new TGeoRotation("r5", 0, 0, 0)));
901 top->AddNodeOverlap(tbs5, 1, new TGeoCombiTrans(0, 0, -16, new TGeoRotation("r6", 0, 0, 0)));
902 top->AddNodeOverlap(tbs6, 1, new TGeoCombiTrans(0, 0, -46, new TGeoRotation("r7", 0, 0, 0)));
903 top->AddNodeOverlap(tbs7, 1, new TGeoCombiTrans(0, 0, -78, new TGeoRotation("r8", 0, 0, 0)));
904 top->AddNodeOverlap(tbs8, 1, new TGeoCombiTrans(0, 20, -80, new TGeoRotation("r9", 0, 90, 0)));
905 top->AddNodeOverlap(tbs9, 1, new TGeoCombiTrans(20, 0, -80, new TGeoRotation("r10", 90, 90, 0)));
906 top->AddNodeOverlap(tbs10, 1, new TGeoCombiTrans(30, 0, -80, new TGeoRotation("r11", 90, 90, 0)));
907 top->AddNodeOverlap(tbs11, 1, new TGeoCombiTrans(5, 75, -80, new TGeoRotation("r12", 90, 90, 0)));
908 top->AddNodeOverlap(tbs12, 1, new TGeoCombiTrans(-5, 75, -80, new TGeoRotation("r13", 90, 90, 0)));
909 top->AddNodeOverlap(tbs13, 1, new TGeoCombiTrans(-15, -2.6, -73, new TGeoRotation("r14", 90, 90, 90)));
910 top->AddNodeOverlap(tbs14, 1, new TGeoCombiTrans(-15, 2.6, -73, new TGeoRotation("r15", 90, 90, 90)));
911 top->AddNodeOverlap(tbs15, 1, new TGeoCombiTrans(0, 0, 95, new TGeoRotation("r16", 0, 0, 0)));
912 top->AddNodeOverlap(tbs16, 1, new TGeoCombiTrans(0, 0, -90, new TGeoRotation("r17", 0, 0, 20)));
913 top->AddNodeOverlap(tbs18, 1, new TGeoCombiTrans(0, 0, 57, new TGeoRotation("r19", 0, 0, 160)));
914 top->AddNodeOverlap(tbs19, 1, new TGeoCombiTrans(0, 0, 57, new TGeoRotation("r20", 0, 0, 200)));
915 top->AddNodeOverlap(tbs20, 1, new TGeoCombiTrans(0, 0, -15, new TGeoRotation("r21", 0, 0, 160)));
916 top->AddNodeOverlap(tbs21, 1, new TGeoCombiTrans(0, 0, -15, new TGeoRotation("r22", 0, 0, 200)));
917 top->AddNodeOverlap(tbs22, 1, new TGeoCombiTrans(0, 0, 90, new TGeoRotation("r23", 0, 0, 160)));
918 top->AddNodeOverlap(tbs23, 1, new TGeoCombiTrans(0, 0, 90, new TGeoRotation("r24", 0, 0, 200)));
919 top->AddNodeOverlap(Cone, 1, new TGeoCombiTrans(0, 0, 41, new TGeoRotation("c1", 0, 0, 0)));
920 top->AddNodeOverlap(Cone1, 1, new TGeoCombiTrans(0, 0, 107, new TGeoRotation("c2", 0, 180, 0)));
921 top->AddNodeOverlap(Cone2, 1, new TGeoCombiTrans(0, 0, 7, new TGeoRotation("c3", 0, 0, 0)));
922 top->AddNodeOverlap(Cone3, 1, new TGeoCombiTrans(0, 0, 21, new TGeoRotation("c4", 0, 180, 0)));
923 top->AddNodeOverlap(Cone4, 1, new TGeoCombiTrans(0, 0, -39, new TGeoRotation("c5", 0, 0, 0)));
924 top->AddNodeOverlap(Cone5, 1, new TGeoCombiTrans(0, 0, -53, new TGeoRotation("c5", 0, 0, 0)));
925 top->AddNodeOverlap(Cone6, 1, new TGeoCombiTrans(0, 63, -80, new TGeoRotation("c6", 0, 90, 0)));
926 top->AddNodeOverlap(Cone7, 1, new TGeoCombiTrans(0, 0, 134, new TGeoRotation("c7", 0, 0, 0)));
927 top->AddNodeOverlap(Cone8, 1, new TGeoCombiTrans(0, 0, -103, new TGeoRotation("c8", 0, 180, 0)));
928 top->AddNodeOverlap(Cone9, 1, new TGeoCombiTrans(-10, 0, 31, new TGeoRotation("c9", 90, -90, 90)));
929 top->AddNodeOverlap(Cone10, 1, new TGeoCombiTrans(10, 0, 31, new TGeoRotation("c9", -90, -90, 90)));
930 top->AddNodeOverlap(Cone11, 1, new TGeoCombiTrans(39, 0, -80, new TGeoRotation("c10", 90, -90, 90)));
931 top->AddNodeOverlap(Cone12, 1, new TGeoCombiTrans(0, 0, -107, new TGeoRotation("c11", 0, 0, 0)));
932
933 top->SetVisibility(false);
934 geom->CloseGeometry();
935
936 top->Draw("ogl");
937}
#define f(i)
Definition RSha256.hxx:104
#define N
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition TAttFill.h:37
Class describing rotation + translation.
Definition TGeoMatrix.h:317
The manager class for any TGeo geometry.
Definition TGeoManager.h:44
TGeoVolume * MakeCone(const char *name, TGeoMedium *medium, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2)
Make in one step a volume pointing to a cone shape with given medium.
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
Make in one step a volume pointing to a box shape with given medium.
TGeoVolume * MakeSphere(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t themin=0, Double_t themax=180, Double_t phimin=0, Double_t phimax=360)
Make in one step a volume pointing to a sphere shape with given medium.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
void SetTopVisible(Bool_t vis=kTRUE)
make top volume visible on screen
TGeoVolume * MakeTubs(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2)
Make in one step a volume pointing to a tube segment shape with given medium.
Base class describing materials.
Media are used to store properties related to tracking and which are useful only when using geometry ...
Definition TGeoMedium.h:23
Class describing rotations.
Definition TGeoMatrix.h:168
Class describing translations.
Definition TGeoMatrix.h:116
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Definition TGeoVolume.h:43
void SetVisibility(Bool_t vis=kTRUE) override
set visibility of this volume
void Draw(Option_t *option="") override
draw top volume according to option
virtual void AddNodeOverlap(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=nullptr, Option_t *option="")
Add a TGeoNode to the list of nodes.
void SetLineColor(Color_t lcolor) override
Set the line color.
__roodevice__ const double a11[11]