| HepMC3 event record library
    | 
Multithreader GenEvent I/O parsing.
Definition at line 26 of file ReaderMT.h.
#include <ReaderMT.h>
 Inheritance diagram for ReaderMT< T, m_number_of_threads >:
 Inheritance diagram for ReaderMT< T, m_number_of_threads >: Collaboration diagram for ReaderMT< T, m_number_of_threads >:
 Collaboration diagram for ReaderMT< T, m_number_of_threads >:| Public Member Functions | |
| ReaderMT (const std::string &filename) | |
| Constructor. | |
| ~ReaderMT () | |
| Destructor. | |
| bool | skip (const int) override | 
| skip | |
| bool | read_event (GenEvent &evt) override | 
| event reading | |
| bool | failed () override | 
| failed | |
| void | close () override | 
| close | |
| virtual std::shared_ptr< GenRunInfo > | run_info () const | 
| Get the global GenRunInfo object. | |
| virtual void | set_options (const std::map< std::string, std::string > &options) | 
| Set options. | |
| virtual std::map< std::string, std::string > | get_options () const | 
| Get options. | |
| virtual void | set_run_info (std::shared_ptr< GenRunInfo > run) | 
| Set the global GenRunInfo object. | |
| Protected Attributes | |
| std::map< std::string, std::string > | m_options | 
| Options. | |
| Static Private Member Functions | |
| static void | read_function (std::pair< GenEvent, bool > &e, std::shared_ptr< T > r) | 
| The reading function. | |
| Private Attributes | |
| bool | m_go_try_cache | 
| Flag to trigger using the cached event. | |
| std::vector< std::shared_ptr< T > > | m_readers | 
| Vector of all active readers. | |
| std::vector< std::pair< GenEvent, bool > > | m_events | 
| Vector of events. | |
| std::vector< std::thread > | m_threads | 
| std::shared_ptr< GenRunInfo > | m_run_info | 
| The global GenRunInfo object. | |
| 
 | inline | 
Constructor.
Definition at line 42 of file ReaderMT.h.
References m_events, m_go_try_cache, m_readers, and m_threads.
| 
 | inline | 
Destructor.
Definition at line 52 of file ReaderMT.h.
| 
 | inlineoverridevirtual | 
| 
 | inlineoverridevirtual | 
failed
Implements Reader.
Definition at line 95 of file ReaderMT.h.
References m_events, m_go_try_cache, and m_readers.
| 
 | inlinevirtualinherited | 
Get options.
Reimplemented in ReaderPlugin.
Definition at line 53 of file Reader.h.
References m_options.
| 
 | inlineoverridevirtual | 
event reading
Implements Reader.
Definition at line 62 of file ReaderMT.h.
References m_events, m_go_try_cache, m_readers, m_threads, and read_function().
| 
 | inlinestaticprivate | 
The reading function.
Definition at line 34 of file ReaderMT.h.
| 
 | inlinevirtualinherited | 
Get the global GenRunInfo object.
Reimplemented in ReaderPlugin.
Definition at line 44 of file Reader.h.
References m_run_info.
| 
 | inlinevirtualinherited | 
Set options.
Reimplemented in ReaderPlugin.
Definition at line 51 of file Reader.h.
References m_options.
| 
 | inlinevirtualinherited | 
Set the global GenRunInfo object.
Reimplemented in ReaderPlugin.
Definition at line 56 of file Reader.h.
References m_run_info.
| 
 | inlineoverridevirtual | 
| 
 | private | 
Vector of events.
Definition at line 31 of file ReaderMT.h.
| 
 | private | 
Flag to trigger using the cached event.
Definition at line 29 of file ReaderMT.h.
| 
 | protectedinherited | 
| 
 | private | 
Vector of all active readers.
Definition at line 30 of file ReaderMT.h.
| 
 | privateinherited | 
The global GenRunInfo object.
| 
 | private | 
Vector of threads
Definition at line 32 of file ReaderMT.h.