-
graphicle.data.PdgArray.mask(target: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], blacklist: bool =
True, sign_sensitive: bool =False) MaskArray[source] Provide a mask over particle evaluated against the passed target pdg codes. May be used to select or filter out particles with given pdg.
- Parameters:¶
- target : array_like of int¶
List of pdg codes for the mask to target.
- blacklist : bool¶
Flag indicates whether black- or white- listing the pdgs in target. If False, mask selects only target. If True, mask removes target. Default is True.
- sign_sensitive : bool¶
Indicates whether the passed target is sign sensitive. If False will check for positive and negative pdgs simultaenously. Default is False.
- Returns:¶
mask – Boolean mask over data, with blacklisted pdgs marked as False. Same shape as pdg array stored in parent object.
- Return type:¶
Last update:
Jun 27, 2025