ftag.cuts#

Attributes#

Classes#

CutsResult

Namespace alss for the cut results.

Cut

Cut dataclass to store a single cut.

Cuts

Cuts dataclass to store multiple Cut instances and apply them.

Module Contents#

ftag.cuts.OPERATORS#
class ftag.cuts.CutsResult#

Bases: NamedTuple

Namespace alss for the cut results.

idx#

Positions of the cuts

Type:

np.ndarray

values#

Values of the cuts

Type:

np.ndarray

idx: numpy.ndarray#
values: numpy.ndarray#
class ftag.cuts.Cut#

Cut dataclass to store a single cut.

variable#

Variable on which the cut is applied

Type:

str

operator#

Operator for the cut

Type:

str

variable: str#
operator: str#
_value: str | int | float#
property value: int | float#
__call__(array)#
__str__() → str#
class ftag.cuts.Cuts#

Cuts dataclass to store multiple Cut instances and apply them.

cuts#

Tuple with the Cut instances

Type:

tuple[Cut, …]

cuts: tuple[Cut, ...]#
classmethod from_list(cuts: list) → Cuts#
classmethod empty() → Cuts#
__post_init__()#
property variables: list[str]#
ignore(variables: list[str])#
__call__(array: numpy.ndarray) → CutsResult#
__add__(other: Cuts)#
__len__() → int#
__iter__() → collections.abc.Iterator#
__getitem__(variable)#
__repr__() → str#