77 def ConstructGeometry(self) -> None:
78 print("Construct Block")
79 top = ROOT.gGeoManager.GetTopVolume()
80 geoLoad = ROOT.FairGeoLoader.Instance()
81 geoFace = geoLoad.getGeoInterface()
82 media = geoFace.getMedia()
83 geoBuild = geoLoad.getGeoBuilder()
84 ShipMedium = media.getMedium(material)
85 W = ROOT.gGeoManager.GetMedium(material)
86 if not W:
87 geoBuild.createMedium(ShipMedium)
88 W = ROOT.gGeoManager.GetMedium(material)
89 aBox = ROOT.gGeoManager.MakeBox("target", W, 100.0 * u.cm, 100.0 * u.cm, thickness)
90 top.AddNode(aBox, 1, ROOT.TGeoTranslation(0, 0, 0))
91 if self.sensPlane:
92 self.sensPlane.AddSensitiveVolume(aBox)
93