16 #include <FairModule.h>
20 #include <TGeoCompositeShape.h>
21 #include <TGeoManager.h>
22 #include <TGeoMaterial.h>
23 #include <TGeoMatrix.h>
24 #include <TGeoMedium.h>
26 #include <TGeoVolume.h>
36 TGeoVolume *top = gGeoManager->GetTopVolume();
39 auto *matFe =
new TGeoMaterial(
"Fe", 55.84, 26, 7.9);
42 auto *Fe =
new TGeoMedium(
"Fe", 100, matFe);
45 new TGeoBBox(
"magyoke1", 261 / 2.0, 221 / 2.0, 278 / 2.0);
46 new TGeoBBox(
"magyoke2", 242 / 2.0, 202 / 2.0, 279 / 2.0);
48 auto *magyokec =
new TGeoCompositeShape(
"magyokec",
"magyoke1-magyoke2");
49 auto *magyoke =
new TGeoVolume(
"magyoke", magyokec, Fe);
50 magyoke->SetLineColor(kViolet + 2);
51 magyoke->SetTransparency(50);
52 top->AddNode(magyoke, 1,
new TGeoTranslation(0, 6.079, 90));
55 auto *SolenoidGeo =
new TGeoTube(
"SolenoidGeo", 125. / 4.0, 274. / 4.0, 229.0 / 2.0);
56 auto *SolenoidVol =
new TGeoVolume(
"SolenoidVol", SolenoidGeo, Fe);
57 SolenoidVol->SetLineColor(kWhite);
58 SolenoidVol->SetTransparency(50);
59 top->AddNode(SolenoidVol, 1,
new TGeoTranslation(0, 6.079, 110));