|
| Writer (std::ostream &os) |
| Create a Writer object giving a stream to write to.
|
|
| Writer (std::string filename) |
| Create a Writer object giving a filename to write to.
|
|
| ~Writer () |
| The destructor writes out the final XML end-tag.
|
|
std::ostream & | headerBlock () |
| Add header lines consisting of XML code with this stream.
|
|
std::ostream & | initComments () |
| Add comment lines to the init block with this stream.
|
|
std::ostream & | eventComments () |
| Add comment lines to the next event to be written out with this stream.
|
|
void | init () |
| Write out an optional header block followed by the standard init block information together with any comment lines.
|
|
void | writeEvent () |
| Write the current HEPEUP object to the stream;.
|
|
The Writer class is initialized with a stream to which to write a version 1.0 Les Houches Accord event file.
In the constructor of the Writer object the main XML tag is written out, with the corresponding end tag is written in the destructor. After a Writer object has been created, it is possible to assign standard init information in the heprup member variable. In addition any XML formatted information can be added to the headerBlock member variable (directly or via the addHeader() function). Further comment line (beginning with a #
character) can be added to the initComments variable (directly or with the addInitComment() function). After this information is set, it should be written out to the file with the init() function.
Before each event is written out with the writeEvent() function, the standard event information can then be assigned to the hepeup variable and optional comment lines (beginning with a #
character) may be given to the eventComments variable (directly or with the addEventComment() function).
- Examples:
- LHEFCat.cc.
Definition at line 2712 of file LHEF.h.