|
HepMC3 event record library
|
GenEvent I/O serialization for compressed files.
Definition at line 25 of file WriterGZ.h.
#include <WriterGZ.h>
Inheritance diagram for WriterGZ< T, C >:
Collaboration diagram for WriterGZ< T, C >:Public Member Functions | |
| WriterGZ (const std::string &filename, std::shared_ptr< GenRunInfo > run=std::shared_ptr< GenRunInfo >()) | |
| Constructor. | |
| WriterGZ (std::ostream &stream, std::shared_ptr< GenRunInfo > run=std::shared_ptr< GenRunInfo >()) | |
| Constructor from ostream. | |
| WriterGZ (std::shared_ptr< std::ostream > s_stream, std::shared_ptr< GenRunInfo > run=std::shared_ptr< GenRunInfo >()) | |
| Constructor from ostream. | |
| ~WriterGZ () | |
| Destructor. | |
| void | write_event (const GenEvent &evt) override |
| Write event to file. | |
| bool | failed () override |
| Return status of the stream. | |
| void | close () override |
| Close file stream. | |
| void | set_run_info (std::shared_ptr< GenRunInfo > run) override |
| Set the act writer's GenRunInfo object. | |
| std::shared_ptr< GenRunInfo > | run_info () const override |
| Get the act writer's GenRunInfo object. | |
| std::shared_ptr< Writer > | writer () |
| Return writer. | |
| virtual void | set_options (const std::map< std::string, std::string > &options) |
| Set options. | |
| virtual std::map< std::string, std::string > | get_options () const |
| Set options. | |
Protected Attributes | |
| std::map< std::string, std::string > | m_options |
| options | |
Private Attributes | |
| std::shared_ptr< std::ostream > | m_zstr = nullptr |
| Stream to write. | |
| std::shared_ptr< Writer > | m_writer = nullptr |
| actual writter | |
| std::shared_ptr< GenRunInfo > | m_run_info |
| The global GenRunInfo object. | |
|
inline |
Constructor.
Definition at line 30 of file WriterGZ.h.
|
inline |
Constructor from ostream.
Definition at line 36 of file WriterGZ.h.
|
inline |
Constructor from ostream.
Definition at line 42 of file WriterGZ.h.
|
inline |
Destructor.
Definition at line 48 of file WriterGZ.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Return status of the stream.
Implements Writer.
Definition at line 56 of file WriterGZ.h.
References m_writer.
|
inlinevirtualinherited |
Set options.
Reimplemented in WriterPlugin.
Definition at line 54 of file Writer.h.
References m_options.
|
inlineoverridevirtual |
Get the act writer's GenRunInfo object.
Reimplemented from Writer.
Definition at line 69 of file WriterGZ.h.
References m_writer.
|
inlinevirtualinherited |
Set options.
Reimplemented in WriterPlugin.
Definition at line 52 of file Writer.h.
References m_options.
|
inlineoverridevirtual |
Set the act writer's GenRunInfo object.
Reimplemented from Writer.
Definition at line 66 of file WriterGZ.h.
References m_writer.
|
inlineoverridevirtual |
Write event to file.
| [in] | evt | Event to be serialized |
Implements Writer.
Definition at line 53 of file WriterGZ.h.
References m_writer.
|
inline |
|
protectedinherited |
|
privateinherited |
The global GenRunInfo object.
|
private |
actual writter
Definition at line 76 of file WriterGZ.h.
|
private |
Stream to write.
Definition at line 75 of file WriterGZ.h.