pylhe.LHEFile
- pylhe.LHEFile
Methods
__init__(init, events, header, comment, ...)count_events(filepath)Efficiently count the number of events in an LHE file without loading them into memory.
frombuffer(fileobject[, with_attributes, ...])Read an LHE file and return an LHEFile object.
fromfile(filepath[, with_attributes, generator])Read an LHE file and return an LHEFile object.
fromstring(string[, with_attributes, generator])Create an LHEFile instance from a string in LHE format.
tofile(filepath[, gz, rwgt, weights])Write the LHE file.
tolhe([rwgt, weights])Return the LHE file as a string.
write(output_stream[, rwgt, weights])Write the LHE file to an output stream.
Attributes
attributesReturn all the attributes of the root LesHouchesEvents element, including the version.
commentComment block
headerHeader block
versionVersion of the LHE file
initInit block
eventsEvent block
extra_attributesAttributes of the root LesHouchesEvents element
alias of
LesHouchesEvents