pylhe.LHEInit

class pylhe.LHEInit(initInfo: LHEInitInfo, procInfo: list[LHEProcInfo], generators: list[LHEGenerator])[source]

Bases: object

Store the <init> block as a dataclass.

__init__(initInfo: LHEInitInfo, procInfo: list[LHEProcInfo], generators: list[LHEGenerator]) None

Methods

__init__(initInfo, procInfo, generators)

tolhe(lheformat)

Return the init block as a string in LHE XML format.

Attributes

initInfo

Init information

procInfo

Process information

generators

Generator information

generators: list[LHEGenerator]

Generator information

initInfo: LHEInitInfo

Init information

procInfo: list[LHEProcInfo]

Process information

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 init block as a string in LHE XML format.

Returns:

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