-
graphicle.select.hard_descendants(graph: Graphicle, target: Iterable[int] | None =
None, sign_sensitive: bool =False, strict: bool =True) MaskGroup[MaskArray][source] Returns a
MaskGroupinstance to select particle descendants oftargethard partons (by PDG code).New in version 0.1.0.
Changed in version 0.1.11:
targetparameter now optional.Changed in version 0.2.5:
strictparameter added.- Parameters:¶
- graph : Graphicle¶
Particle graph containing at least
PdgArrayandStatusArray.- target : Iterable[int], optional¶
PDG codes referring to the hard particles for which descendants are obtained. If
None, will obtain masks for all intermediate and outgoing hard partons. Default isNone.- sign_sensitive : bool¶
Indicates whether sign of PDG code should be used when selecting hard partons, ie. if set to
Falseboth particle and anti-particle partons will be masked, whereas ifTrueonly the partons explicitly matching the target sign will be considered. Default isFalse.- strict : bool¶
If
Trueall PDGs intargetmust be present in the hard process. IfFalse, only a subset need be present. Default isTrue.
- Returns:¶
Collection of masks over the event indicating the descendants of partons from within the hard process.
- Return type:¶
- Raises:¶
ValueError – If PDG codes required by
targetandstrictare absent from the partons in the hard process.
Last update:
Jun 27, 2025