pylhe.LHEProcInfo

class pylhe.LHEProcInfo(xSection: float, error: float, unitWeight: float, procId: int, npLO: int | None = None, npNLO: int | None = None)[source]

Bases: object

Store the process info block as a dataclass.

__init__(xSection: float, error: float, unitWeight: float, procId: int, npLO: int | None = None, npNLO: int | None = None) None

Methods

__init__(xSection, error, unitWeight, procId)

fromstring(string)

Create an LHEProcInfo instance from a string in LHE format.

tolhe(lheformat)

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

Attributes

npLO

LO final-state multiplicity tag for HDF5 procInfo tables

npNLO

Born-level multiplicity tag for HDF5 procInfo tables

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.

npLO: int | None = None

LO final-state multiplicity tag for HDF5 procInfo tables

npNLO: int | None = None

Born-level multiplicity tag for HDF5 procInfo tables

procId: int

Process ID

tolhe(lheformat: LHEXMLFormat = LHEXMLFormat(indent='  ', compress=False, weights=<LHEWeightFormat.RWGT: 'rwgt'>, eventinfo='{nparticles:3d} {pid:6d} {weight: 15.10e} {scale: 15.10e} {aqed: 15.10e} {aqcd: 15.10e}', particle='{id:5d} {status:3d} {mother1:3d} {mother2:3d} {color1:3d} {color2:3d} {px: 15.8e} {py: 15.8e} {pz: 15.8e} {e: 15.8e} {m: 15.8e} {lifetime: 10.4e} {spin: 10.4e}', initinfo=' {beamA: 6d} {beamB: 6d} {energyA: 14.7e} {energyB: 14.7e} {PDFgroupA: 5d} {PDFgroupB: 5d} {PDFsetA: 5d} {PDFsetB: 5d} {weightingStrategy: 5d} {numProcesses: 5d}', procinfo='{xSection: 14.7e} {error: 14.7e} {unitWeight: 14.7e} {procId: 5d}')) str[source]

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

Returns:

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

unitWeight: float

Unit weight of the process

xSection: float

Cross section of the process