pylhe.LHEProcInfo

class pylhe.LHEProcInfo(xSection: float, error: float, unitWeight: float, procId: int)[source]

Bases: object

Store the process info block as a dataclass.

__init__(xSection: float, error: float, unitWeight: float, procId: int) None

Methods

__init__(xSection, error, unitWeight, procId)

fromstring(string)

Create an LHEProcInfo instance from a string in LHE format.

tolhe()

Return the process info block as a string in LHE format.

Attributes

xSection

Cross section of the process

error

Uncertainty/error of the cross section

unitWeight

Unit weight of the process

procId

Process ID

error: float

Uncertainty/error of the cross section

classmethod fromstring(string: str) LHEProcInfo[source]

Create an LHEProcInfo instance from a string in LHE format.

procId: int

Process ID

tolhe() str[source]

Return the process info block as a string in LHE format.

Returns:

str: The process info block as a string in LHE format.

unitWeight: float

Unit weight of the process

xSection: float

Cross section of the process