![]() |
ATLAS Offline Software
|
Classes | |
| class | PartonHistoryBlock |
Functions | |
| str | _get_aux_type (str branch, str prefix) |
| list | _make_particle_branches (str prefix, *, bool include_pdgid=True, tuple stages=None, tuple extra=()) |
| list[str] | _replace_in_list (list[str] string_list, str old, str new) |
| list | _t_branches (str suffix="t") |
Variables | |
| tuple | KINEMATIC_VARS = ("pt", "eta", "phi", "m") |
| INT_SUFFIXES = frozenset(("pdgId", "IsOnShell", "origin")) | |
| tuple | VECTOR_PREFIXES = ("MC_b_", "MC_bbar_", "MC_c_", "MC_cbar_") |
| VECTOR_HISTORIES = frozenset(("Ttbarbbbar", "Ttbarccbar")) | |
| dict | BRANCHES |
| dict | _TTBAR = BRANCHES["t"] + BRANCHES["tbar"] + BRANCHES["ttbar"] |
| dict | TRUTH_BRANCHES |
|
protected |
Definition at line 15 of file PartonHistoryConfig.py.
|
protected |
Generate standard kinematic branch names for a particle.
Parameters
----------
prefix:
Particle label as it appears in the branch name, e.g. ``"t"`` ->
``MC_t_beforeFSR_pt``. When the prefix already encodes the FSR stage
(e.g. ``"W_beforeFSR_from_t"``), pass ``stages=()``.
include_pdgid:
Append ``pdgId`` after the kinematic variables for each stage.
stages:
FSR stage tokens to iterate over. Defaults to
``("beforeFSR", "afterFSR")``. Pass ``()`` when the FSR stage is
already embedded in prefix — branches become ``MC_{prefix}_{var}``.
extra:
Additional branch suffixes appended verbatim, e.g. ``("IsOnShell",)``.
Definition at line 26 of file PartonHistoryConfig.py.
|
protected |
Definition at line 69 of file PartonHistoryConfig.py.
|
protected |
Branches for a top quark and its full decay chain. Sub-particles carry the FSR stage in their prefix so we pass ``stages=()`` to avoid appending a spurious stage token to the variable name. For tbar, the b-quark is named 'bbar'.
Definition at line 78 of file PartonHistoryConfig.py.
Definition at line 147 of file PartonHistoryConfig.py.
| dict PartonHistoryConfig.BRANCHES |
Definition at line 96 of file PartonHistoryConfig.py.
| PartonHistoryConfig.INT_SUFFIXES = frozenset(("pdgId", "IsOnShell", "origin")) |
Definition at line 11 of file PartonHistoryConfig.py.
| tuple PartonHistoryConfig.KINEMATIC_VARS = ("pt", "eta", "phi", "m") |
Definition at line 10 of file PartonHistoryConfig.py.
| dict PartonHistoryConfig.TRUTH_BRANCHES |
Definition at line 149 of file PartonHistoryConfig.py.
| PartonHistoryConfig.VECTOR_HISTORIES = frozenset(("Ttbarbbbar", "Ttbarccbar")) |
Definition at line 13 of file PartonHistoryConfig.py.
| tuple PartonHistoryConfig.VECTOR_PREFIXES = ("MC_b_", "MC_bbar_", "MC_c_", "MC_cbar_") |
Definition at line 12 of file PartonHistoryConfig.py.