pylhe.LHEEventInfo

class pylhe.LHEEventInfo(nparticles: int, pid: int, weight: float, scale: float, aqed: float, aqcd: float)[source]

Bases: object

Store the event information in the LHE format.

__init__(nparticles: int, pid: int, weight: float, scale: float, aqed: float, aqcd: float) None

Methods

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

fromstring(string)

Create an LHEEventInfo instance from a string in LHE format.

tolhe()

Return the event info as a string in LHE format.

Attributes

nparticles

Number of particles in the event

pid

Process ID for the event

weight

Event weight

scale

Energy scale of the event

aqed

QED coupling constant alpha_QED

aqcd

QCD coupling constant alpha_QCD

aqcd: float

QCD coupling constant alpha_QCD

aqed: float

QED coupling constant alpha_QED

classmethod fromstring(string: str) LHEEventInfo[source]

Create an LHEEventInfo instance from a string in LHE format.

nparticles: int

Number of particles in the event

pid: int

Process ID for the event

scale: float

Energy scale of the event

tolhe() str[source]

Return the event info as a string in LHE format.

Returns:

str: The event info as a string in LHE format.

weight: float

Event weight