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
erhic::Reader Class Reference

#include <EventMC.h>

Public Member Functions

 Reader (const std::string &treeName="EICTree")
 
virtual ~Reader ()
 
EventMCRead (Long64_t number)
 
EventMCoperator() (Long64_t number)
 
TTree * GetTree ()
 

Public Attributes

EventMCmEvent
 The last event read.
 
TTree * mTree
 The tree being read.
 

Detailed Description

Wrapper for getting tree from file and event from tree.

Definition at line 264 of file EventMC.h.

Constructor & Destructor Documentation

erhic::Reader::Reader ( const std::string &  treeName = "EICTree")
explicit

Construct a Reader for the named TTree.

Definition at line 159 of file EventMC.cxx.

virtual erhic::Reader::~Reader ( )
inlinevirtual

Destructor.

Definition at line 274 of file EventMC.h.

Member Function Documentation

TTree * erhic::Reader::GetTree ( )
inline

Return the tree read by this reader.

Definition at line 305 of file EventMC.h.

EventMC * erhic::Reader::operator() ( Long64_t  number)
inline

Read and return the numbered event from the tree.

The event number should lie in the range [0, numEvents).

Definition at line 301 of file 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 EventMC.cxx.


The documentation for this class was generated from the following files: