ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
EventReconstruction
ReconstructionUtils
python
ReconstructionAlgorithmsUtils.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
# Shared helpers for the event reconstruction config blocks. These algorithms
4
# decorate EventInfo rather than writing their own output container, so they
5
# need a common convention for composing output branch prefixes.
6
7
from
types
import
SimpleNamespace
8
9
# The topology each reconstruction algorithm operates on.
10
TOP_NAMESPACE = SimpleNamespace()
11
TOP_NAMESPACE.DILEPASSIGNER_TOPOLOGY =
"TtbarDiLepton"
12
TOP_NAMESPACE.ELLIPSEMETHOD_TOPOLOGY =
"TtbarDiLepton"
13
TOP_NAMESPACE.NEUTRINOWEIGHTER_TOPOLOGY =
"TtbarDiLepton"
14
TOP_NAMESPACE.NUFLOWS_TOPOLOGY =
"TtbarDiLepton"
15
TOP_NAMESPACE.SLHAD_CHI2_TOPOLOGY =
"TtbarLJets"
16
17
18
def
_resolve_reco_partons_prefix
(topology, reco_partons_prefix):
19
producer_label = reco_partons_prefix.strip()
20
if
not
producer_label:
21
raise
ValueError(
22
"outputName must not be empty when publishing reconstructed parton kinematics."
23
)
24
if
producer_label.startswith(topology +
"_"
):
25
return
producer_label
26
return
topology +
"_"
+ producer_label
ReconstructionAlgorithmsUtils._resolve_reco_partons_prefix
_resolve_reco_partons_prefix(topology, reco_partons_prefix)
Definition
ReconstructionAlgorithmsUtils.py:18
Generated on
for ATLAS Offline Software by
1.17.0