showerpipe.lhe.event_iter(source: Path | str | bytes) Iterator[LheEvent][source]

Iterates over a LHE file, yielding LheEvent objects, providing attribute access to numpy arrays, containing particle data.

New in version 0.4.0.

Parameters:
source : Pathlike, string, or bytes

The variable or filepath containing the LHE data. May be a path, url, string, or bytes object. Gzip compression is allowed.

Yields:

LheEvent – Numpy interface to the event data.

Notes

This is a wrapper around event_iter_text(), but provides only a subset of the fields available as attributes. For more complete data you may wish to use event_iter_text() and parse the strings yourself.


Last update: Jun 27, 2025