ATLAS Offline Software
Loading...
Searching...
No Matches
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
7from types import SimpleNamespace
8
9# The topology each reconstruction algorithm operates on.
10TOP_NAMESPACE = SimpleNamespace()
11TOP_NAMESPACE.DILEPASSIGNER_TOPOLOGY = "TtbarDiLepton"
12TOP_NAMESPACE.ELLIPSEMETHOD_TOPOLOGY = "TtbarDiLepton"
13TOP_NAMESPACE.NEUTRINOWEIGHTER_TOPOLOGY = "TtbarDiLepton"
14TOP_NAMESPACE.NUFLOWS_TOPOLOGY = "TtbarDiLepton"
15TOP_NAMESPACE.SLHAD_CHI2_TOPOLOGY = "TtbarLJets"
16
17
18def _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
_resolve_reco_partons_prefix(topology, reco_partons_prefix)