18#include "HepMC3/GenRunInfo.h"
44 virtual std::shared_ptr<GenRunInfo>
run_info()
const {
return m_run_info; }
56 virtual void set_run_info(std::shared_ptr<GenRunInfo> run) { m_run_info = run; }
63 std::shared_ptr<GenRunInfo> m_run_info;
Stores event-related information.
virtual std::shared_ptr< GenRunInfo > run_info() const
Get the global GenRunInfo object.
std::map< std::string, std::string > m_options
Options.
virtual bool skip(const int)
skip or fast forward reading of some events
virtual void set_options(const std::map< std::string, std::string > &options)
Set options.
Reader(const Reader &)=delete
deleted copy constructor
virtual void close()=0
Close file and/or stream.
virtual ~Reader()
Virtual destructor.
virtual void set_run_info(std::shared_ptr< GenRunInfo > run)
Set the global GenRunInfo object.
Reader & operator=(const Reader &)=delete
deleted copy assignment operator
virtual bool read_event(GenEvent &evt)=0
Fill next event from input into evt.
virtual std::map< std::string, std::string > get_options() const
Get options.
virtual bool failed()=0
Get file and/or stream error state.