pylhe.LHEFile

class pylhe.LHEFile(init: LHEInit = None, events: Iterable[LHEEvent] | None = None)[source]

Bases: object

Represents an LHE file.

__init__(init: LHEInit = None, events: Iterable[LHEEvent] | None = None)[source]

Methods

__init__([init, events])

tolhe([rwgt, weights])

Return the LHE file as a string.

write(output_stream[, rwgt, weights])

Write the LHE file to an output stream.

tolhe(rwgt=True, weights=False) str[source]

Return the LHE file as a string.

write(output_stream, rwgt=True, weights=False)[source]

Write the LHE file to an output stream.