LHEFileWriter¶
-
class LHEFileWriter¶
Streams events to an LHE file.
Opens
file_name, writes the<init>header built frommeta, 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_nameand writes its<init>header frommeta.
-
void write_string(const std::string &str)¶
Append
strto the file verbatim, unescaped.
-
~LHEFileWriter()¶
Closes the file, appending the closing
</LesHouchesEvents>tag.
-
LHEFileWriter(const std::string &file_name, const LHEMeta &meta)¶