ftag.cuts#
Attributes#
Classes#
Namespace alss for the cut results. |
|
Cut dataclass to store a single cut. |
|
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.
- __post_init__()#
- property variables: list[str]#
- ignore(variables: list[str])#
- __call__(array: numpy.ndarray) CutsResult #
- __len__() int #
- __iter__() collections.abc.Iterator #
- __getitem__(variable)#
- __repr__() str #