3def PLR_GeometryCfg(flags):
4 from AtlasGeoModel.GeoModelConfig import GeoModelCfg
5 acc = GeoModelCfg(flags)
6 geoModelSvc = acc.getPrimary()
7
8 from AthenaConfiguration.ComponentFactory import CompFactory
9 plrDetectorTool = CompFactory.PLRDetectorTool()
10 plrDetectorTool.DetectorName = "PLR"
11 if flags.Detector.GeometryITkPixel:
12
13
14 plrDetectorTool.ContainingDetector = "ITkPixel"
15 if flags.ITk.Geometry.PLRLocal:
16
17 plrDetectorTool.GmxFilename = flags.ITk.Geometry.PLRFilename
18 if flags.ITk.Geometry.PLRClobOutputName:
19 plrDetectorTool.ClobOutputName = flags.ITk.Geometry.PLRClobOutputName
20 geoModelSvc.DetectorTools += [ plrDetectorTool ]
21 return acc
22
23