LHEFileWriter

class LHEFileWriter

Streams events to an LHE file.

Opens file_name, writes the <init> header built from meta, and lets write append one <event> block at a time; the destructor closes the </LesHouchesEvents> tag.

Public Functions

LHEFileWriter(const std::string &file_name, const LHEMeta &meta)

Opens file_name and writes its <init> header from meta.

void write(const LHEEvent &event)

Append event as one <event> block.

void write_string(const std::string &str)

Append str to the file verbatim, unescaped.

~LHEFileWriter()

Closes the file, appending the closing </LesHouchesEvents> tag.