6 from AtlasGeoModel.GeometryDBConfig
import InDetGeometryDBSvcCfg
7 db = InDetGeometryDBSvcCfg(flags)
9 from AtlasGeoModel.GeoModelConfig
import GeoModelCfg
10 acc = GeoModelCfg(flags)
11 geoModelSvc = acc.getPrimary()
13 from AthenaConfiguration.ComponentFactory
import CompFactory
14 sctDetectorTool = CompFactory.SCT_DetectorTool()
15 sctDetectorTool.GeometryDBSvc = db.getPrimary()
16 sctDetectorTool.useDynamicAlignFolders = flags.GeoModel.Align.Dynamic
17 sctDetectorTool.Alignable =
True
18 geoModelSvc.DetectorTools += [ sctDetectorTool ]
24 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
25 acc = ComponentAccumulator()
26 if flags.GeoModel.Align.LegacyConditionsAccess:
27 from IOVDbSvc.IOVDbSvcConfig
import addFoldersSplitOnline
28 if flags.GeoModel.Align.Dynamic:
29 acc.merge(addFoldersSplitOnline(flags,
"INDET",
30 [
"/Indet/Onl/AlignL1/ID",
"/Indet/Onl/AlignL2/SCT"],
31 [
"/Indet/AlignL1/ID",
"/Indet/AlignL2/SCT"]))
32 acc.merge(addFoldersSplitOnline(flags,
"INDET",
"/Indet/Onl/AlignL3",
"/Indet/AlignL3"))
34 acc.merge(addFoldersSplitOnline(flags,
"INDET",
"/Indet/Onl/Align",
"/Indet/Align"))
36 from SCT_ConditionsAlgorithms.SCT_ConditionsAlgorithmsConfig
import SCT_AlignCondAlgCfg
37 acc.merge(SCT_AlignCondAlgCfg(flags))