Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
python.AODFixEGAmbiguityLinksConfig Namespace Reference

Functions

def AODFixEGAmbiguityLinksCfg (flags)
 

Function Documentation

◆ AODFixEGAmbiguityLinksCfg()

def python.AODFixEGAmbiguityLinksConfig.AODFixEGAmbiguityLinksCfg (   flags)

Definition at line 8 of file AODFixEGAmbiguityLinksConfig.py.

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 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AODFixEGAmbiguityLinksConfig.AODFixEGAmbiguityLinksCfg
def AODFixEGAmbiguityLinksCfg(flags)
Definition: AODFixEGAmbiguityLinksConfig.py:8
python.AODFixHelper.releaseInRange
def releaseInRange(flags, rel1, rel2)
Definition: AODFixHelper.py:9
AddressRemappingConfig.InputRenameCfg
def InputRenameCfg(type, from_name, to_name)
Definition: AddressRemappingConfig.py:28