- heparchy.write.HdfEventWriter.set_mask(name: str, data: ndarray[Any, dtype[bool_]]) None[source]
Write bool mask for all particles in event.
- Parameters¶
- data : iterable or 1d numpy array¶
Iterable of bools containing True / False values for every particle in event. Note: would also accept int iterable of 0s / 1s.
Notes
- Example use cases:
identify particles from specific parent
provide mask for rapidity and pT cuts
if storing whole shower, identify final state
Last update:
Nov 16, 2022