CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
python.cmstools.EventBranch Class Reference
Inheritance diagram for python.cmstools.EventBranch:

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.

153  def __init__(self,parent,name):
154  self._branch = parent.tree().GetBranch(name)
155  if self._branch == None:
156  raise cmserror("Unknown branch "+name)
158  self._index = parent.index()
self._readData = False
def createBranchBuffer
auto branch types (Chris Jones)
Definition: cmstools.py:51

Member Function Documentation

def python.cmstools.EventBranch.__call__ (   self)

Definition at line 167 of file cmstools.py.

References python.cmstools.EventBranch.__readData(), python.cmstools.EventBranch._buffer, and python.cmstools.EventBranch._readData.

168  def __call__(self):
169  if not self._readData:
170  self.__readData()
171  return self._buffer
172 
def python.cmstools.EventBranch.__readData (   self)
private

Definition at line 162 of file cmstools.py.

References SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, and python.cmstools.EventBranch._readData.

Referenced by python.cmstools.EventBranch.__call__().

163  def __readData(self):
164  self._branch.GetEntry(self._index)
165  self._readData = True
def python.cmstools.EventBranch.setIndex (   self,
  index 
)

Definition at line 159 of file cmstools.py.

References SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, and python.cmstools.EventBranch._readData.

160  def setIndex(self,index):
161  self._index = index
self._readData = False

Member Data Documentation

python.cmstools.EventBranch._branch
private

Definition at line 153 of file cmstools.py.

python.cmstools.EventBranch._buffer
private

Definition at line 156 of file cmstools.py.

Referenced by python.cmstools.EventBranch.__call__().

python.cmstools.EventBranch._index
private

Definition at line 157 of file cmstools.py.

Referenced by python.cmstools.EventBranch.__readData(), python.cmstools.EventBranch.setIndex(), and html.HtmlReport.write().

python.cmstools.EventBranch._readData
private

Definition at line 158 of file cmstools.py.

Referenced by python.cmstools.EventBranch.__call__(), python.cmstools.EventBranch.__readData(), and python.cmstools.EventBranch.setIndex().