4 from AtlasGeoModel.GeoModelConfig
import GeoModelCfg
5 acc = GeoModelCfg(flags)
6 geoModelSvc = acc.getPrimary()
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 ITkPixelDetectorTool = CompFactory.ITk.PixelDetectorTool()
11 ITkPixelDetectorTool.Alignable = flags.ITk.Geometry.pixelAlignable
12 ITkPixelDetectorTool.AlignmentFolderName = flags.ITk.Geometry.alignmentFolder
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 ]
24 if flags.GeoModel.Align.LegacyConditionsAccess
and not flags.ITk.Align.useLocalDatabase:
25 from IOVDbSvc.IOVDbSvcConfig
import addFoldersSplitOnline
26 return addFoldersSplitOnline(flags,
"INDET",
"/Indet/Onl/Align", flags.ITk.Geometry.alignmentFolder)
28 from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import ITkPixelAlignCondAlgCfg
29 return ITkPixelAlignCondAlgCfg(flags)