class showerpipe.lhe.LheData[source]

Container for the Les Houches file content.

content[source]

Bytestring containing the text of the stored file.

Type:

bytes

num_events[source]

Number of events stored.

Type:

int

repeat(repeats, inplace)[source]

Returns bytes content, with additional events by repetition.

tile(repeats, inplace)[source]

Returns bytes content, with additional events by tiling.

Public members

LheData(content: bytes)[source]

Initialize self. See help(type(self)) for accurate signature.

__repr__() str[source]

Return repr(self).

classmethod from_storage(storage: str | Path) LheData[source]

Loads the LHE data directly from the given file location.

property content : bytes[source]

The LHE file contents in bytes.

property num_events : int[source]
repeat(repeats: int, inplace: bool = False) bytes | None[source]

Modifies LHE content, repeating each event the number of times given by repeats.

tile(repeats: int, inplace: bool = False) bytes | None[source]

Modifies LHE content, tile repeating all events the number of times given by repeats.


Last update: Jun 27, 2025