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