25 FairGeoLoader* loader = FairGeoLoader::Instance();
26 FairGeoInterface* GeoInterface = loader->getGeoInterface();
28 MGeo->setGeomFile(GetGeometryFileName());
29 GeoInterface->addGeoModule(MGeo);
30 Bool_t rc = GeoInterface->readSet(MGeo);
32 MGeo->create(loader->getGeoBuilder());
34 TGeoVolume* top = gGeoManager->GetTopVolume();
36 TGeoMedium* concrete = gGeoManager->GetMedium(
"Concrete");
55 Double_t rock_half_length = (TCC8_length + ECN3_length) / 2. + 5 *
m;
56 Double_t rock_centre = (ECN3_length - TCC8_length) / 2.;
57 [[maybe_unused]]
auto* rock =
58 new TGeoBBox(
"rock", 20 *
m, 20 *
m, rock_half_length);
59 auto* rock_shift =
new TGeoTranslation(
"rock_shift", 0, 0, rock_centre);
60 rock_shift->RegisterYourself();
62 [[maybe_unused]]
auto* muon_shield_cavern =
63 new TGeoBBox(
"muon_shield_cavern", (kTCC8RightX - kTCC8LeftX) / 2.,
64 (kTCC8CeilingY - kTCC8FloorY) / 2., TCC8_length / 2.);
65 auto* TCC8_shift =
new TGeoTranslation(
66 "TCC8_shift", (kTCC8RightX + kTCC8LeftX) / 2.,
67 (kTCC8CeilingY + kTCC8FloorY) / 2., -TCC8_length / 2.);
68 TCC8_shift->RegisterYourself();
70 [[maybe_unused]]
auto* stair_step =
71 new TGeoBBox(
"stair_step", (kTCC8RightX - kTCC8LeftX) / 2.,
72 (kTCC8CeilingY - kStairFloorY) / 2., stair_step_length / 2.);
73 auto* stair_step_shift =
new TGeoTranslation(
74 "stair_step_shift", (kTCC8RightX + kTCC8LeftX) / 2.,
75 (kTCC8CeilingY + kStairFloorY) / 2., stair_step_length / 2.);
76 stair_step_shift->RegisterYourself();
79 [[maybe_unused]]
auto* experiment_cavern =
80 new TGeoBBox(
"experiment_cavern", (kECN3RightX - kECN3LeftX) / 2.,
81 (kECN3SpringlineY - kECN3FloorY) / 2.,
82 ECN3_length / 2. - stair_step_length / 2.);
84 new TGeoTranslation(
"ECN3_shift", (kECN3RightX + kECN3LeftX) / 2.,
85 (kECN3SpringlineY + kECN3FloorY) / 2.,
86 ECN3_length / 2. + stair_step_length / 2.);
87 ECN3_shift->RegisterYourself();
90 [[maybe_unused]]
auto* yoke_pit =
91 new TGeoBBox(
"yoke_pit", 4.2 *
m, 0.5 *
m, 4.5 *
m);
92 auto* yoke_pit_shift =
93 new TGeoTranslation(
"yoke_pit_shift", 0, kECN3FloorY - 0.5 *
m,
95 yoke_pit_shift->RegisterYourself();
97 auto* compRock =
new TGeoCompositeShape(
"compRock",
99 "- muon_shield_cavern:TCC8_shift"
100 "- experiment_cavern:ECN3_shift"
101 "- stair_step:stair_step_shift"
102 "- yoke_pit:yoke_pit_shift");
103 auto* Cavern =
new TGeoVolume(
"Cavern", compRock, concrete);
104 Cavern->SetLineColor(11);
105 Cavern->SetTransparency(50);
106 top->AddNode(Cavern, 1,
new TGeoTranslation(0, 0, z_transition));