pylhe.LHEXMLFormat

class pylhe.LHEXMLFormat(indent: str = '  ', compress: bool = False, weights: LHEWeightFormat = LHEWeightFormat.RWGT, eventinfo: str = '{nparticles:3d} {pid:6d} {weight: 15.10e} {scale: 15.10e} {aqed: 15.10e} {aqcd: 15.10e}', particle: str = '{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: str = ' {beamA: 6d} {beamB: 6d} {energyA: 14.7e} {energyB: 14.7e} {PDFgroupA: 5d} {PDFgroupB: 5d} {PDFsetA: 5d} {PDFsetB: 5d} {weightingStrategy: 5d} {numProcesses: 5d}', procinfo: str = '{xSection: 14.7e} {error: 14.7e} {unitWeight: 14.7e} {procId: 5d}')[source]

Bases: object

Selects the XML format.

__init__(indent: str = '  ', compress: bool = False, weights: LHEWeightFormat = LHEWeightFormat.RWGT, eventinfo: str = '{nparticles:3d} {pid:6d} {weight: 15.10e} {scale: 15.10e} {aqed: 15.10e} {aqcd: 15.10e}', particle: str = '{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: str = ' {beamA: 6d} {beamB: 6d} {energyA: 14.7e} {energyB: 14.7e} {PDFgroupA: 5d} {PDFgroupB: 5d} {PDFsetA: 5d} {PDFsetB: 5d} {weightingStrategy: 5d} {numProcesses: 5d}', procinfo: str = '{xSection: 14.7e} {error: 14.7e} {unitWeight: 14.7e} {procId: 5d}') None

Methods

__init__([indent, compress, weights, ...])

Attributes

compress

compress as gzip

eventinfo

indent

indentation string for XML output

initinfo

particle

procinfo

weights

compress: bool = False

compress as gzip

indent: str = '  '

indentation string for XML output