6 #ifndef HEPMC3_READERROOTTREE_H 7 #define HEPMC3_READERROOTTREE_H 43 ReaderRootTree(
const std::string &filename,
const std::string &treename,
const std::string &branchname);
76 std::string m_tree_name;
77 std::string m_branch_name;
Definition of interface Reader.
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 stream error state.
void close()
Close file stream.
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.
GenEvent I/O parsing and serialization for root files based on root TTree.
Definition of class GenEvent.
Base class for all I/O readers.
ReaderRootTree(const std::string &filename)
Default constructor.
Definition of struct GenRunInfoData.