pylhe.LHEInitInfo

class pylhe.LHEInitInfo(beamA: int, beamB: int, energyA: float, energyB: float, PDFgroupA: int, PDFgroupB: int, PDFsetA: int, PDFsetB: int, weightingStrategy: int, numProcesses: int)[source]

Bases: object

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

__init__(beamA: int, beamB: int, energyA: float, energyB: float, PDFgroupA: int, PDFgroupB: int, PDFsetA: int, PDFsetB: int, weightingStrategy: int, numProcesses: int) None

Methods

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

fromstring(string)

Create an LHEInitInfo instance from a string in LHE format.

tolhe(lheformat)

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

Attributes

beamA

Beam A PDG ID

beamB

Beam B PDG ID

energyA

Beam A energy

energyB

Beam B energy

PDFgroupA

PDF group for beam A

PDFgroupB

PDF group for beam B

PDFsetA

PDF set for beam A

PDFsetB

PDF set for beam B

weightingStrategy

Weighting strategy

numProcesses

Number of processes

PDFgroupA: int

PDF group for beam A

PDFgroupB: int

PDF group for beam B

PDFsetA: int

PDF set for beam A

PDFsetB: int

PDF set for beam B

beamA: int

Beam A PDG ID

beamB: int

Beam B PDG ID

energyA: float

Beam A energy

energyB: float

Beam B energy

classmethod fromstring(string: str) LHEInitInfo[source]

Create an LHEInitInfo instance from a string in LHE format.

numProcesses: int

Number of processes

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

Returns:

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

weightingStrategy: int

Weighting strategy