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

Iterates over a LHE file, yielding the text contained within an event block. See https://arxiv.org/abs/hep-ph/0109068 for the data layout.

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:

str – The text block contained in each successive event.


Last update: Jun 27, 2025