125 for (
int i = 0; i < 26; i++) {
126 sprintf(
name,
"wh%d", i);
155 -150 + (25 *
cos(34 * (3.14 / 180))),
new TGeoRotation(
"who", 90, 34, -90)));
158 -150 + (25 *
cos(68 * (3.14 / 180))),
new TGeoRotation(
"who", 90, 68, -90)));
161 -150 + (25 *
cos(102 * (3.14 / 180))),
165 -150 + (25 *
cos(136 * (3.14 / 180))),
170 -150 + (25 *
cos(136 * (3.14 / 180))) - 10,
174 -150 + (25 *
cos(136 * (3.14 / 180))) - 20,
178 -150 + (25 *
cos(136 * (3.14 / 180))) - 30,
182 -150 + (25 *
cos(136 * (3.14 / 180))) - 40,
187 -150 + (22.8 *
cos(34 * (3.14 / 180))),
191 -150 + (22.8 *
cos(68 * (3.14 / 180))),
195 -150 + (22.8 *
cos(102 * (3.14 / 180))),
199 -150 + (22.8 *
cos(136 * (3.14 / 180))),
204 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 10,
208 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 20,
212 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 30,
216 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 40,
221 -150 + (27 *
cos(34 * (3.14 / 180))),
225 -150 + (27 *
cos(68 * (3.14 / 180))),
229 -150 + (27 *
cos(102 * (3.14 / 180))),
233 -150 + (27 *
cos(136 * (3.14 / 180))),
238 -150 + (27 *
cos(136 * (3.14 / 180))) - 10,
242 -150 + (27 *
cos(136 * (3.14 / 180))) - 20,
246 -150 + (27 *
cos(136 * (3.14 / 180))) - 30,
250 -150 + (27 *
cos(136 * (3.14 / 180))) - 40,
255 -150 + (27 *
cos(34 * (3.14 / 180))),
259 -150 + (27 *
cos(68 * (3.14 / 180))),
263 -150 + (27 *
cos(102 * (3.14 / 180))),
267 -150 + (27 *
cos(136 * (3.14 / 180))),
272 -150 + (27 *
cos(136 * (3.14 / 180))) - 10,
276 -150 + (27 *
cos(136 * (3.14 / 180))) - 20,
280 -150 + (27 *
cos(136 * (3.14 / 180))) - 30,
284 -150 + (27 *
cos(136 * (3.14 / 180))) - 40,
310 -150 + (25 *
cos(136 * (3.14 / 180))) - 5,
314 -150 + (25 *
cos(136 * (3.14 / 180))) - 15,
318 -150 + (25 *
cos(136 * (3.14 / 180))) - 25,
322 -150 + (25 *
cos(136 * (3.14 / 180))) - 35,
327 -150 + (25 *
cos(136 * (3.14 / 180))) - 5,
331 -150 + (25 *
cos(136 * (3.14 / 180))) - 15,
335 -150 + (25 *
cos(136 * (3.14 / 180))) - 25,
339 -150 + (25 *
cos(136 * (3.14 / 180))) - 35,
349 -150 + (25 *
cos(34 * (3.14 / 180))),
new TGeoRotation(
"who", 90, -34, -90)));
352 -150 + (25 *
cos(68 * (3.14 / 180))),
new TGeoRotation(
"who", 90, -68, -90)));
355 -150 + (25 *
cos(102 * (3.14 / 180))),
359 -150 + (25 *
cos(136 * (3.14 / 180))),
364 -150 + (25 *
cos(136 * (3.14 / 180))) - 10,
368 -150 + (25 *
cos(136 * (3.14 / 180))) - 20,
372 -150 + (25 *
cos(136 * (3.14 / 180))) - 30,
376 -150 + (25 *
cos(136 * (3.14 / 180))) - 41,
381 -150 + (22.8 *
cos(34 * (3.14 / 180))),
385 -150 + (22.8 *
cos(68 * (3.14 / 180))),
389 -150 + (22.8 *
cos(102 * (3.14 / 180))),
393 -150 + (22.8 *
cos(136 * (3.14 / 180))),
398 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 10,
402 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 20,
406 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 30,
410 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 41,
415 -150 + (27 *
cos(34 * (3.14 / 180))),
419 -150 + (27 *
cos(68 * (3.14 / 180))),
423 -150 + (27 *
cos(102 * (3.14 / 180))),
427 -150 + (27 *
cos(136 * (3.14 / 180))),
432 -150 + (27 *
cos(136 * (3.14 / 180))) - 10,
436 -150 + (27 *
cos(136 * (3.14 / 180))) - 20,
440 -150 + (27 *
cos(136 * (3.14 / 180))) - 30,
444 -150 + (27 *
cos(136 * (3.14 / 180))) - 41,
449 -150 + (27 *
cos(34 * (3.14 / 180))),
453 -150 + (27 *
cos(68 * (3.14 / 180))),
457 -150 + (27 *
cos(102 * (3.14 / 180))),
461 -150 + (27 *
cos(136 * (3.14 / 180))),
466 -150 + (27 *
cos(136 * (3.14 / 180))) - 10,
470 -150 + (27 *
cos(136 * (3.14 / 180))) - 20,
474 -150 + (27 *
cos(136 * (3.14 / 180))) - 30,
478 -150 + (27 *
cos(136 * (3.14 / 180))) - 41,
502 -150 + (25 *
cos(136 * (3.14 / 180))) - 5,
506 -150 + (25 *
cos(136 * (3.14 / 180))) - 15,
510 -150 + (25 *
cos(136 * (3.14 / 180))) - 25,
514 -150 + (25 *
cos(136 * (3.14 / 180))) - 35,
519 -150 + (25 *
cos(136 * (3.14 / 180))) - 5,
523 -150 + (25 *
cos(136 * (3.14 / 180))) - 15,
527 -150 + (25 *
cos(136 * (3.14 / 180))) - 25,
531 -150 + (25 *
cos(136 * (3.14 / 180))) - 35,
543 -150 + (25 *
cos(34 * (3.14 / 180))),
new TGeoRotation(
"who", 90, 34, -90)));
546 -150 + (25 *
cos(68 * (3.14 / 180))),
new TGeoRotation(
"who", 90, 68, -90)));
549 -150 + (25 *
cos(102 * (3.14 / 180))),
553 -150 + (25 *
cos(136 * (3.14 / 180))),
558 -150 + (25 *
cos(136 * (3.14 / 180))) - 10,
562 -150 + (25 *
cos(136 * (3.14 / 180))) - 20,
566 -150 + (25 *
cos(136 * (3.14 / 180))) - 30,
570 -150 + (25 *
cos(136 * (3.14 / 180))) - 40,
575 -150 + (22.8 *
cos(34 * (3.14 / 180))),
579 -150 + (22.8 *
cos(68 * (3.14 / 180))),
583 -150 + (22.8 *
cos(102 * (3.14 / 180))),
587 -150 + (22.8 *
cos(136 * (3.14 / 180))),
592 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 10,
596 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 20,
600 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 30,
604 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 40,
609 -150 + (27 *
cos(34 * (3.14 / 180))),
613 -150 + (27 *
cos(68 * (3.14 / 180))),
617 -150 + (27 *
cos(102 * (3.14 / 180))),
621 -150 + (27 *
cos(136 * (3.14 / 180))),
626 -150 + (27 *
cos(136 * (3.14 / 180))) - 10,
630 -150 + (27 *
cos(136 * (3.14 / 180))) - 20,
634 -150 + (27 *
cos(136 * (3.14 / 180))) - 30,
638 -150 + (27 *
cos(136 * (3.14 / 180))) - 40,
643 -150 + (27 *
cos(34 * (3.14 / 180))),
647 -150 + (27 *
cos(68 * (3.14 / 180))),
651 -150 + (27 *
cos(102 * (3.14 / 180))),
655 -150 + (27 *
cos(136 * (3.14 / 180))),
660 -150 + (27 *
cos(136 * (3.14 / 180))) - 10,
664 -150 + (27 *
cos(136 * (3.14 / 180))) - 20,
668 -150 + (27 *
cos(136 * (3.14 / 180))) - 30,
672 -150 + (27 *
cos(136 * (3.14 / 180))) - 40,
687 -150 + (25 *
cos(136 * (3.14 / 180))) - 5,
691 -150 + (25 *
cos(136 * (3.14 / 180))) - 15,
695 -150 + (25 *
cos(136 * (3.14 / 180))) - 25,
699 -150 + (25 *
cos(136 * (3.14 / 180))) - 35,
704 -150 + (25 *
cos(136 * (3.14 / 180))) - 5,
708 -150 + (25 *
cos(136 * (3.14 / 180))) - 15,
712 -150 + (25 *
cos(136 * (3.14 / 180))) - 25,
716 -150 + (25 *
cos(136 * (3.14 / 180))) - 35,
721 -150 + (25 *
cos(34 * (3.14 / 180))),
new TGeoRotation(
"who", 90, -34, -90)));
724 -150 + (25 *
cos(68 * (3.14 / 180))),
new TGeoRotation(
"who", 90, -68, -90)));
727 -150 + (25 *
cos(102 * (3.14 / 180))),
731 -150 + (25 *
cos(136 * (3.14 / 180))),
736 -150 + (25 *
cos(136 * (3.14 / 180))) - 10,
740 -150 + (25 *
cos(136 * (3.14 / 180))) - 20,
744 -150 + (25 *
cos(136 * (3.14 / 180))) - 30,
748 -150 + (25 *
cos(136 * (3.14 / 180))) - 41,
753 -150 + (22.8 *
cos(34 * (3.14 / 180))),
757 -150 + (22.8 *
cos(68 * (3.14 / 180))),
761 -150 + (22.8 *
cos(102 * (3.14 / 180))),
765 -150 + (22.8 *
cos(136 * (3.14 / 180))),
770 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 10,
774 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 20,
778 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 30,
782 -150 + (22.8 *
cos(136 * (3.14 / 180))) - 41,
787 -150 + (27 *
cos(34 * (3.14 / 180))),
791 -150 + (27 *
cos(68 * (3.14 / 180))),
795 -150 + (27 *
cos(102 * (3.14 / 180))),
799 -150 + (27 *
cos(136 * (3.14 / 180))),
804 -150 + (27 *
cos(136 * (3.14 / 180))) - 10,
808 -150 + (27 *
cos(136 * (3.14 / 180))) - 20,
812 -150 + (27 *
cos(136 * (3.14 / 180))) - 30,
816 -150 + (27 *
cos(136 * (3.14 / 180))) - 41,
821 -150 + (27 *
cos(34 * (3.14 / 180))),
825 -150 + (27 *
cos(68 * (3.14 / 180))),
829 -150 + (27 *
cos(102 * (3.14 / 180))),
833 -150 + (27 *
cos(136 * (3.14 / 180))),
838 -150 + (27 *
cos(136 * (3.14 / 180))) - 10,
842 -150 + (27 *
cos(136 * (3.14 / 180))) - 20,
846 -150 + (27 *
cos(136 * (3.14 / 180))) - 30,
850 -150 + (27 *
cos(136 * (3.14 / 180))) - 41,
865 -150 + (25 *
cos(136 * (3.14 / 180))) - 5,
869 -150 + (25 *
cos(136 * (3.14 / 180))) - 15,
873 -150 + (25 *
cos(136 * (3.14 / 180))) - 25,
877 -150 + (25 *
cos(136 * (3.14 / 180))) - 35,
882 -150 + (25 *
cos(136 * (3.14 / 180))) - 5,
886 -150 + (25 *
cos(136 * (3.14 / 180))) - 15,
890 -150 + (25 *
cos(136 * (3.14 / 180))) - 25,
894 -150 + (25 *
cos(136 * (3.14 / 180))) - 35,
898 for (
int i = 0; i < 20; i++) {
899 sprintf(
name,
"wh%d", i);
Class describing rotation + translation.
The manager class for any TGeo geometry.
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 * MakeTrd2(const char *name, TGeoMedium *medium, Double_t dx1, Double_t dx2, Double_t dy1, Double_t dy2, Double_t dz)
Make in one step a volume pointing to a TGeoTrd2 shape with given medium.
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 ...
Class describing rotations.
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
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.
RVec< PromoteType< T > > cos(const RVec< T > &v)
RVec< PromoteType< T > > sin(const RVec< T > &v)