6 #ifndef HEPMC_READERROOTTREE_H 7 #define HEPMC_READERROOTTREE_H 21 #include "HepMC/Reader.h" 22 #include "HepMC/GenEvent.h" 23 #include "HepMC/Data/GenEventData.h" 24 #include "HepMC/Data/GenRunInfoData.h" 43 ReaderRootTree(
const std::string &filename,
const std::string &treename,
const std::string &branchname);
75 std::string m_tree_name;
76 std::string m_branch_name;
Base class for all I/O readers.
bool failed()
Get stream error state.
TFile m_file
File handler.
int m_events_count
Events count. Needed to read the tree.
Stores event-related information.
ReaderRootTree(const std::string &filename)
Default constructor.
void close()
Close file stream.
TTree * m_tree
Tree handler. Public to allow simple access, e.g. custom branches.
bool read_event(GenEvent &evt)
Read event from file.
Definition of template class SmartPointer.
Stores serializable event information.