88 def ConstructGeometry(self) -> None:
89 print("Construct Block")
90 top = ROOT.gGeoManager.GetTopVolume()
91 geoLoad = ROOT.FairGeoLoader.Instance()
92 geoFace = geoLoad.getGeoInterface()
93 media = geoFace.getMedia()
94 geoBuild = geoLoad.getGeoBuilder()
95 ShipMedium = media.getMedium(material)
96 W = ROOT.gGeoManager.GetMedium(material)
97 if not W:
98 geoBuild.createMedium(ShipMedium)
99 W = ROOT.gGeoManager.GetMedium(material)
100 aBox = ROOT.gGeoManager.MakeBox("target", W, 100.0 * u.cm, 100.0 * u.cm, thickness)
101 top.AddNode(aBox, 1, ROOT.TGeoTranslation(0, 0, 0))
102 if self.sensPlane:
103 self.sensPlane.AddSensitiveVolume(aBox)
104