EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
erhic::Reader Class Reference

#include <eic-smear/blob/master/include/eicsmear/erhic/EventMC.h>

+ Collaboration diagram for erhic::Reader:

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 275 of file EventMC.h.

View newest version in sPHENIX GitHub at line 275 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 179 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 179 of file EventMC.cxx

References mEvent, and mTree.

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

Destructor.

Definition at line 285 of file EventMC.h.

View newest version in sPHENIX GitHub at line 285 of file EventMC.h

Member Function Documentation

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

Return the tree read by this reader.

Definition at line 316 of file EventMC.h.

View newest version in sPHENIX GitHub at line 316 of file EventMC.h

References mTree.

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 312 of file EventMC.h.

View newest version in sPHENIX GitHub at line 312 of file EventMC.h

References Read().

+ Here is the call graph for this function:

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

References mEvent, and mTree.

Referenced by operator()().

+ Here is the caller graph for this function:

Member Data Documentation

EventMC* erhic::Reader::mEvent

The last event read.

Definition at line 306 of file EventMC.h.

View newest version in sPHENIX GitHub at line 306 of file EventMC.h

Referenced by Read(), and Reader().

TTree* erhic::Reader::mTree

The tree being read.

Definition at line 307 of file EventMC.h.

View newest version in sPHENIX GitHub at line 307 of file EventMC.h

Referenced by GetTree(), Read(), and Reader().


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