77 new TGeoManager(
"Monopole_geometry",
"Monopole VMC example geometry");
90 new TGeoMaterial(
"Aluminium", a = 26.98, z = 13., density = 2.700);
91 new TGeoMaterial(
"Si", a = 28.085, z = 14., density = 2.330);
92 new TGeoMaterial(
"Galactic", a = 1.e-16, z = 1.e-16, density = 1.e-16);
108 for (Int_t i = 8; i < 20; ++i) param[i] = 0.;
111 TList* materials = gGeoManager->GetListOfMaterials();
112 TIter next(materials);
113 while (
TObject* obj = next()) {
114 TGeoMaterial* material = (TGeoMaterial*)obj;
116 if (material->GetName() != TString(
"Galactic")) {
122 new TGeoMedium(material->GetName(), ++mediumId, material, param);
135 Int_t worldMediumId =
137 Int_t absorberMediumId =
149 gGeoManager->Volume(
"World",
"BOX", worldMediumId, world, 3);
150 gGeoManager->SetTopVolume(top);
155 Double_t absorber[3];
159 gGeoManager->Volume(
"Absorber",
"BOX", absorberMediumId, absorber, 3);
165 gGeoManager->Node(
"Absorber", 1,
"World", posX, posY, posZ, 0, kTRUE, ubuf);
168 gGeoManager->CloseGeometry();
171 gMC->SetRootGeometry();