EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <eic-smear/blob/master/include/eicsmear/erhic/EventMC.h>
Public Member Functions | |
Reader (const std::string &treeName="EICTree") | |
virtual | ~Reader () |
EventMC * | Read (Long64_t number) |
EventMC * | operator() (Long64_t number) |
TTree * | GetTree () |
Public Attributes | |
EventMC * | mEvent |
The last event read. | |
TTree * | mTree |
The tree being read. | |
Wrapper for getting tree from file and event from tree.
Definition at line 275 of file EventMC.h.
View newest version in sPHENIX GitHub at line 275 of file EventMC.h
|
explicit |
Construct a Reader for the named TTree.
Definition at line 179 of file EventMC.cxx.
View newest version in sPHENIX GitHub at line 179 of file EventMC.cxx
|
inlinevirtual |
|
inline |
|
inline |
EventMC * erhic::Reader::Read | ( | Long64_t | number | ) |
Read and return the numbered event from the tree.
The event number should lie in the range [0, numEvents).
Definition at line 186 of file EventMC.cxx.
View newest version in sPHENIX GitHub at line 186 of file EventMC.cxx
Referenced by operator()().
EventMC* erhic::Reader::mEvent |
TTree* erhic::Reader::mTree |