CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

python::cmstools::EventBranch Class Reference

List of all members.

Public Member Functions

def __call__
def __init__
def setIndex

Private Member Functions

def __readData

Private Attributes

 _branch
 _buffer
 _index
 _readData

Detailed Description

Definition at line 151 of file cmstools.py.


Constructor & Destructor Documentation

def python::cmstools::EventBranch::__init__ (   self,
  parent,
  name 
)

Definition at line 152 of file cmstools.py.

00153                                   :
00154         self._branch = parent.tree().GetBranch(name)
00155         if self._branch == None:
00156             raise cmserror("Unknown branch "+name)
00157         self._buffer = createBranchBuffer(self._branch)
00158         self._index = parent.index()
        self._readData = False

Member Function Documentation

def python::cmstools::EventBranch::__call__ (   self)

Definition at line 167 of file cmstools.py.

00168                       :
00169         if not self._readData:
00170             self.__readData()
00171         return self._buffer
00172 

def python::cmstools::EventBranch::__readData (   self) [private]

Definition at line 162 of file cmstools.py.

00163                         :
00164         self._branch.GetEntry(self._index)
00165         self._readData = True

def python::cmstools::EventBranch::setIndex (   self,
  index 
)

Definition at line 159 of file cmstools.py.

00160                             :
00161         self._index = index
        self._readData = False

Member Data Documentation

Definition at line 152 of file cmstools.py.

Definition at line 152 of file cmstools.py.

Definition at line 152 of file cmstools.py.

Definition at line 152 of file cmstools.py.