ATLAS Offline Software
Loading...
Searching...
No Matches
python.AODFixEGAmbiguityLinksConfig Namespace Reference

Functions

 AODFixEGAmbiguityLinksCfg (flags)

Function Documentation

◆ AODFixEGAmbiguityLinksCfg()

python.AODFixEGAmbiguityLinksConfig.AODFixEGAmbiguityLinksCfg ( flags)

Definition at line 8 of file AODFixEGAmbiguityLinksConfig.py.

8def AODFixEGAmbiguityLinksCfg(flags):
9
10 #first check if we need to apply this AODFix
11 if not releaseInRange(flags,"Athena-24.0.0","Athena-24.0.83"):
12 return None
13
14 result=ComponentAccumulator()
15
16 #Use the AddressRemappingSvc to rename the input object
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 #Re-run the required algorithms
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