pylhe.LHEEventInfo
- class pylhe.LHEEventInfo(nparticles: int, pid: int, weight: float, scale: float, aqed: float, aqcd: float)[source]
Bases:
objectStore 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(lheformat)Return the event info as a string in LHE XML format.
Attributes
Number of particles in the event
Process ID for the event
Event weight
Energy scale of the event
QED coupling constant alpha_QED
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(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 event info as a string in LHE XML format.
- Returns:
str: The event info as a string in LHE XML format.
- weight: float
Event weight