pylhe.LHEGenerator
- class pylhe.LHEGenerator(name: str, version: str, description: str, extra_attributes: dict[str, str]=<factory>)[source]
Bases:
objectInformation about a generator.
- __init__(name: str, version: str, description: str, extra_attributes: dict[str, str]=<factory>) None
Methods
__init__(name, version, description, ...)tolhe(lheformat)Return the generator information as a string in LHE XML format.
Attributes
Name of the generator
Version of the generator
Description of the generator
Generator XML attributes not represented by dedicated fields
Return all the attributes of the generator element, including the name and version attributes.
- property attributes: dict[str, str]
Return all the attributes of the generator element, including the name and version attributes.
- description: str
Description of the generator
- extra_attributes: dict[str, str]
Generator XML attributes not represented by dedicated fields
- name: str
Name of the generator
- tolhe(lheformat: LHEXMLFormat = LHEXMLFormat(version=<LHEVersion.V3: '3.0'>, 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 generator information as a string in LHE XML format.
- Returns:
str: The generator information as a string in LHE XML format.
- version: str
Version of the generator