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
11 plrDetectorTool.Alignable = False
12 plrDetectorTool.DetectorName = "PLR"
13 if flags.Detector.GeometryITkPixel:
14
15
16 plrDetectorTool.ContainingDetector = "ITkPixel"
17 if flags.ITk.Geometry.PLRLocal:
18
19 plrDetectorTool.GmxFilename = flags.ITk.Geometry.PLRFilename
20 if flags.ITk.Geometry.PLRClobOutputName:
21 plrDetectorTool.ClobOutputName = flags.ITk.Geometry.PLRClobOutputName
22 geoModelSvc.DetectorTools += [ plrDetectorTool ]
23 return acc
24
25