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