6 #ifndef HEPMC3_READERROOTTREE_H 7 #define HEPMC3_READERROOTTREE_H 43 ReaderRootTree(
const std::string &filename,
const std::string &treename,
const std::string &branchname);
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 failed()
Get file error state.
bool read_event(GenEvent &evt)
Read event from file.
Stores event-related information.
Stores serializable event information.
Stores serializable run information.
int m_events_count
Events count. Needed to read the tree.
std::string m_tree_name
Name of TTree.
GenEvent I/O parsing and serialization for root files based on root TTree.
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.