3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from IOVDbSvc.IOVDbSvcConfig
import addFoldersSplitOnline
6 from StripGeoModelXml.ITkStripGeoModelConfig
import ITkStripGeoModelCfg
10 """Return a configured SCT_AlignCondAlg for ITk"""
12 if flags.GeoModel.Align.Dynamic:
13 raise RuntimeError(
"Dynamic alignment not supported for ITk yet")
15 acc.merge(
addFoldersSplitOnline(flags,
"INDET",
"/Indet/Onl/Align", flags.ITk.Geometry.alignmentFolder, className=
"AlignableTransformContainer"))
17 kwargs.setdefault(
"DetManagerName",
"ITkStrip")
18 kwargs.setdefault(
"WriteKey",
"ITkStripAlignmentStore")
19 kwargs.setdefault(
"UseDynamicAlignFolders", flags.GeoModel.Align.Dynamic)
20 kwargs.setdefault(
"ReadKeyStatic",flags.ITk.Geometry.alignmentFolder)
22 sctAlignCondAlg = CompFactory.SCT_AlignCondAlg(name, **kwargs)
23 acc.addCondAlgo(sctAlignCondAlg)
28 return "/ITkStrip/DAQ/Config/" if flags.IOVDb.DatabaseInstance !=
"COMP200" else "/ITkStrip/DAQ/Configuration/"
34 channelFolder = folder_prefix + (
"Chip" if flags.IOVDb.DatabaseInstance ==
"COMP200" else "ChipSlim")
35 kwargs.setdefault(
"ReadKeyChannel", channelFolder)
36 kwargs.setdefault(
"ReadKeyModule", f
"{folder_prefix}Module")
37 kwargs.setdefault(
"ReadKeyMur", f
"{folder_prefix}MUR")
41 onlineFolders=channelFolder,
42 offlineFolders=channelFolder,
43 className=
"CondAttrListVec",
47 onlineFolders=f
"{folder_prefix}Module",
48 offlineFolders=f
"{folder_prefix}Module",
49 className=
"CondAttrListVec",
53 onlineFolders=f
"{folder_prefix}MUR",
54 offlineFolders=f
"{folder_prefix}MUR",
55 className=
"CondAttrListVec",
58 from SCT_Cabling.ITkStripCablingConfig
import ITkStripCablingToolCfg
61 from SCT_ConditionsTools.ITkStripConditionsToolsConfig
import ITkStripReadoutToolCfg
64 acc.addCondAlgo(CompFactory.SCT_ConfigurationCondAlg(name, **kwargs))
69 kwargs.setdefault(
"DetManagerName",
"ITkStrip")
70 kwargs.setdefault(
"ReadKey",
"ITkStripAlignmentStore")
71 kwargs.setdefault(
"WriteKey",
"ITkStripDetectorElementCollection")
74 acc.addCondAlgo(CompFactory.SCT_DetectorElementCondAlg(name, **kwargs))