pylhe.LHEGenerator

class pylhe.LHEGenerator(name: str, version: str, description: str, attributes: dict[str, str] | None = None)[source]

Bases: object

Information about a generator.

__init__(name: str, version: str, description: str, attributes: dict[str, str] | None = None) None[source]

Methods

__init__(name, version, description[, ...])

tolhe()

Return the generator information as a string in LHE format.

Attributes

attributes

Generator XML attributes, e.g. name and version.

name

Name of the generator, retrieved from the attributes.

version

Version of the generator, retrieved from the attributes.

description

Description of the generator

attributes: dict[str, str] = {}

Generator XML attributes, e.g. name and version

description: str

Description of the generator

property name: str

Name of the generator, retrieved from the attributes.

tolhe() str[source]

Return the generator information as a string in LHE format.

Returns:

str: The generator information as a string in LHE format.

property version: str

Version of the generator, retrieved from the attributes.