19def PixelAlignmentCfg(flags):
20 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
21 acc = ComponentAccumulator()
22 if flags.GeoModel.Align.LegacyConditionsAccess:
23 from IOVDbSvc.IOVDbSvcConfig import addFoldersSplitOnline
24 if flags.GeoModel.Align.Dynamic:
25 acc.merge(addFoldersSplitOnline(flags, "INDET",
26 ["/Indet/Onl/AlignL1/ID", "/Indet/Onl/AlignL2/PIX"],
27 ["/Indet/AlignL1/ID", "/Indet/AlignL2/PIX"]))
28 acc.merge(addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/AlignL3", "/Indet/AlignL3"))
29 else:
30 acc.merge(addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/Align", "/Indet/Align"))
31 acc.merge(addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/IBLDist", "/Indet/IBLDist"))
32 else:
33 from PixelConditionsAlgorithms.PixelConditionsConfig import PixelAlignCondAlgCfg
34 acc.merge(PixelAlignCondAlgCfg(flags))
35 return acc
36
37
38@AccumulatorCache