ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecJobTransforms
python
AODFixEGAmbiguityLinksConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
RecJobTransforms.AODFixHelper
import
releaseInRange
6
7
8
def
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
python.AODFixEGAmbiguityLinksConfig.AODFixEGAmbiguityLinksCfg
AODFixEGAmbiguityLinksCfg(flags)
Definition
AODFixEGAmbiguityLinksConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0