ftag.labels#

Classes#

Functions#

remove_suffix(→ str)

Module Contents#

ftag.labels.remove_suffix(string: str, suffix: str) str#
class ftag.labels.Label#
name: str#
label: str#
cuts: ftag.cuts.Cuts#
colour: str#
category: str#
_px: str | None = None#
property px: str#
property eff_str: str#
property rej_str: str#
property frac_str: str#
__str__() str#
__lt__(other) bool#
class ftag.labels.LabelContainer#
labels: dict[str, Label]#
__iter__() collections.abc.Iterator#
__getitem__(key) Label#
__len__() int#
__getattr__(name) Label#
__contains__(label: str | Label) bool#
__eq__(other) bool#
__repr__() str#
property categories: list[str]#
by_category(category: str) LabelContainer#
from_cuts(cuts: list | ftag.cuts.Cuts) Label#
classmethod from_yaml(yaml_path: pathlib.Path | None = None) LabelContainer#
classmethod from_list(labels: list[Label]) LabelContainer#
backgrounds(signal: Label, only_signals: bool = True) LabelContainer#