HepMC3 event record library
|
Go to the documentation of this file.
6 #ifndef HEPMC3_WRITERPLUGIN_H
7 #define HEPMC3_WRITERPLUGIN_H
26 #ifndef HEPMC3_PYTHON_BINDINGS
29 WriterPlugin(std::ostream & stream,
const std::string &libname,
const std::string &newwriter, std::shared_ptr<HepMC3::GenRunInfo>run=shared_ptr<GenRunInfo>());
34 WriterPlugin(
const std::string& filename,
const std::string &libname,
const std::string &newwriter, std::shared_ptr<HepMC3::GenRunInfo>run=shared_ptr<GenRunInfo>());
Definition of class GenEvent.
WriterPlugin(std::ostream &stream, const std::string &libname, const std::string &newwriter, std::shared_ptr< HepMC3::GenRunInfo >run=shared_ptr< GenRunInfo >())
Constructor to read from stream.
Stores event-related information.
void close() override
Close.
void * dll_handle
library handler
bool failed() override
State.
Definition of interface Writer.
Writer * m_writer
The actual writer.
virtual void close()=0
Close file and/or stream.
void write_event(const GenEvent &ev) override
Reading event.
GenEvent I/O parsing and serialization using external plugin.
virtual void write_event(const GenEvent &evt)=0
Write event evt to output target.
Base class for all I/O writers.
~WriterPlugin() override
Destructor.
virtual bool failed()=0
Get file and/or stream error state.