8def AODFixEGAmbiguityLinksCfg(flags):
9
10
11 if not releaseInRange(flags,"Athena-24.0.0","Athena-24.0.83"):
12 return None
13
14 result=ComponentAccumulator()
15
16
17 from SGComps.AddressRemappingConfig import InputRenameCfg
18 result.merge(InputRenameCfg("xAOD::ElectronContainer", "Electrons", "old_Electrons"))
19 result.merge(InputRenameCfg("xAOD::PhotonContainer", "Photons", "old_Photons"))
20 result.merge(InputRenameCfg("xAOD::ElectronAuxContainer", "ElectronsAux.", "old_ElectronsAux."))
21 result.merge(InputRenameCfg("xAOD::PhotonAuxContainer", "PhotonsAux.", "old_PhotonsAux."))
22
23
24 result.addEventAlgo(CompFactory.egammaAmbiguityRelinker(ElectronInputName="old_Electrons",
25 ElectronOutputName="Electrons",
26 PhotonInputName="old_Photons",
27 PhotonOutputName="Photons"))
28
29 return result
30
31
32