eic-smear
1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
|
Wrapper for getting tree from file and event from tree. More...
#include <EventMC.h>
Public Member Functions | |
Reader (const std::string &treeName="EICTree") | |
Construct a Reader for the named TTree. More... | |
virtual | ~Reader () |
Destructor. More... | |
EventMC * | Read (Long64_t number) |
Read and return the numbered event from the tree. More... | |
EventMC * | operator() (Long64_t number) |
Read and return the numbered event from the tree. More... | |
TTree * | GetTree () |
Return the tree read by this reader. More... | |
Public Attributes | |
EventMC * | mEvent |
The last event read. More... | |
TTree * | mTree |
The tree being read. More... | |
Wrapper for getting tree from file and event from tree.
Definition at line 266 of file erhic/EventMC.h.
|
explicit |
Construct a Reader for the named TTree.
Definition at line 159 of file erhic/EventMC.cxx.
|
inlinevirtual |
Destructor.
Definition at line 276 of file erhic/EventMC.h.
|
inline |
Return the tree read by this reader.
Definition at line 307 of file erhic/EventMC.h.
|
inline |
Read and return the numbered event from the tree.
The event number should lie in the range [0, numEvents).
Definition at line 303 of file erhic/EventMC.h.
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 166 of file erhic/EventMC.cxx.
EventMC* erhic::Reader::mEvent |
The last event read.
Definition at line 297 of file erhic/EventMC.h.
TTree* erhic::Reader::mTree |
The tree being read.
Definition at line 298 of file erhic/EventMC.h.