3 def ITkPixelGeoModelCfg(flags,setGeometryAlignable=False,setAlignmentFolderName="/Indet/Align"):
4 from AtlasGeoModel.GeoModelConfig
import GeoModelCfg
6 geoModelSvc = acc.getPrimary()
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 ITkPixelDetectorTool = CompFactory.ITk.PixelDetectorTool()
11 ITkPixelDetectorTool.Alignable = setGeometryAlignable
12 ITkPixelDetectorTool.AlignmentFolderName = setAlignmentFolderName
13 ITkPixelDetectorTool.DetectorName =
"ITkPixel"
14 if flags.ITk.Geometry.PixelLocal:
16 ITkPixelDetectorTool.GmxFilename = flags.ITk.Geometry.PixelFilename
17 if flags.ITk.Geometry.PixelClobOutputName:
18 ITkPixelDetectorTool.ClobOutputName = flags.ITk.Geometry.PixelClobOutputName
19 geoModelSvc.DetectorTools += [ ITkPixelDetectorTool ]