pylhe.LHEHeader
- class pylhe.LHEHeader(initrwgt: LHEInitRWGT, extra_elements: list[Element] = <factory>, extra_attributes: dict[str, str]=<factory>)[source]
Bases:
objectRepresents the header block of an LHE file as a dataclass.
- __init__(initrwgt: LHEInitRWGT, extra_elements: list[Element] = <factory>, extra_attributes: dict[str, str]=<factory>) None
Methods
__init__(initrwgt, extra_elements, ...)tolhe()Return the header block as a string in LHE format.
Attributes
Return all the attributes of the header element
<initrwgt> block information
Other XML elements stored directly inside the header block
Attributes of the header element not represented by dedicated fields
- property attributes: dict[str, str]
Return all the attributes of the header element
- extra_attributes: dict[str, str]
Attributes of the header element not represented by dedicated fields
- extra_elements: list[Element]
Other XML elements stored directly inside the header block
- initrwgt: LHEInitRWGT
<initrwgt> block information