pylhe

Python interface to read Les Houches Event (LHE) files.

Module Attributes

DEFAULT_FORMAT

Default output format with indentation, RWGT weights block and plain text file format.

GZ_FORMAT

Output format for gzip compressed files, with (default) RWGT weights block.

RWGT_FORMAT

Output format with RWGT weights block and (default) plain text file format.

WEIGHTS_FORMAT

Output format with WEIGHTS weights block and (default) plain text file format.

RWGT_GZ_FORMAT

Output format with RWGT weights block and gzip compressed file format.

WEIGHTS_GZ_FORMAT

Output format with WEIGHTS weights block and gzip compressed file format.

HDF5_FORMAT

Output format for HDF5-based LHEH5 files.

HDF5_GZ_FORMAT

Output format for HDF5-based LHEH5 files with gzip-compressed datasets.

Classes

LHEEvent(eventinfo, particles, weights, ...)

Store a single event in the LHE format.

LHEEventInfo(nparticles, pid, weight, scale, ...)

Store the event information in the LHE format.

LHEFile

LHEGenerator(name, version, description, ...)

Information about a generator.

LHEHDF5Format([compression, ...])

Selects the HDF5 format.

LHEHeader(initrwgt, extra_elements, ...)

Represents the header block of an LHE file as a dataclass.

LHEInit(initInfo, procInfo, generators)

Store the <init> block as a dataclass.

LHEInitInfo(beamA, beamB, energyA, energyB, ...)

Store the first line of the <init> block as a dataclass.

LHEInitRWGTWeight(id, name, ...)

Information about a single weight inside or outside of a weight group.

LHEInitRWGTWeightGroup(name, combine, ...)

Information about a weight group.

LHEParticle(id, status, mother1, mother2, ...)

Represents a single particle in the LHE format.

LHEProcInfo(xSection, error, unitWeight, procId)

Store the process info block as a dataclass.

LHEWeightFormat(*values)

Selects how event weights are serialized in LHE output.

LHEXMLFormat([indent, compress, weights, ...])

Selects the XML format.