6 #ifndef HEPMC3_READERROOTTREE_H
7 #define HEPMC3_READERROOTTREE_H
43 ReaderRootTree(
const std::string &filename,
const std::string &treename,
const std::string &branchname);
51 bool skip(
const int)
override;
60 void close()
override;
Definition of interface Reader.
GenRunInfoData * m_run_info_data
Pointer to structure that holds run info data.
Definition of struct GenEventData.
TTree * m_tree
Tree handler. Public to allow simple access, e.g. custom branches.
TFile * m_file
File handler.
bool skip(const int) override
skip events
Stores event-related information.
Stores serializable event information.
Stores serializable run information.
int m_events_count
Events count. Needed to read the tree.
void close() override
Close file.
std::string m_tree_name
Name of TTree.
GenEvent I/O parsing and serialization for root files based on root TTree.
bool read_event(GenEvent &evt) override
Read event from file.
bool failed() override
Get file error state.
Definition of class GenEvent.
GenEventData * m_event_data
Pointer to structure that holds event data.
std::string m_branch_name
Name of TBranch in TTree.
Base class for all I/O readers.
ReaderRootTree(const std::string &filename)
Default constructor.
Definition of struct GenRunInfoData.