pylhe.LHEGenerator

class pylhe.LHEGenerator(name: str, version: str, description: str, extra_attributes: dict[str, str]=<factory>)[source]

Bases: object

Information about a generator.

__init__(name: str, version: str, description: str, extra_attributes: dict[str, str]=<factory>) None

Methods

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

tolhe()

Return the generator information as a string in LHE format.

Attributes

attributes

Return all the attributes of the generator element, including the name and version attributes.

name

Name of the generator

version

Version of the generator

description

Description of the generator

extra_attributes

Generator XML attributes not represented by dedicated fields

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() str[source]

Return the generator information as a string in LHE format.

Returns:

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

version: str

Version of the generator