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 152 of file cmstools.py.

Constructor & Destructor Documentation

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

Definition at line 153 of file cmstools.py.

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

Member Function Documentation

def python.cmstools.EventBranch.__call__ (   self)

Definition at line 168 of file cmstools.py.

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

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

Definition at line 163 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__().

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

Definition at line 160 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.

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

Member Data Documentation

python.cmstools.EventBranch._branch
private

Definition at line 154 of file cmstools.py.

python.cmstools.EventBranch._buffer
private

Definition at line 157 of file cmstools.py.

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

python.cmstools.EventBranch._index
private

Definition at line 158 of file cmstools.py.

Referenced by ntuple._Object.__getattr__(), python.cmstools.EventBranch.__readData(), ntuple._TrackingParticleMatchAdaptor._nMatchedTrackingParticles(), ntuple.TrackingParticle._nMatchedTracks(), ntuple.TrackingVertex.daughterTrackingParticles(), ntuple.TrackingParticle.decayVertices(), ntuple._Object.index(), ntuple.Seed.indexWithinAlgo(), ntuple._Object.isValid(), ntuple._LayerStrAdaptor.layerStr(), ntuple.InvalidHit.layerStr(), ntuple.TrackingParticle.matchedTrackInfos(), ntuple._TrackingParticleMatchAdaptor.matchedTrackingParticleInfos(), ntuple.GluedHit.monoHit(), ntuple.TrackingVertex.nDaughterTrackingParticles(), ntuple.SimHit.nRecHits(), ntuple._HitObject.nseeds(), ntuple.GluedHit.nseeds(), ntuple.TrackingVertex.nSourceTrackingParticles(), ntuple._HitObject.ntracks(), ntuple.Vertex.nTracks(), ntuple.TrackingParticle.parentVertex(), ntuple.Track.seed(), ntuple._HitObject.seeds(), ntuple.GluedHit.seeds(), python.cmstools.EventBranch.setIndex(), ntuple.TrackingVertex.sourceTrackingParticles(), ntuple.GluedHit.stereoHit(), ntuple.TrackMatchInfo.track(), ntuple.Seed.track(), ntuple.TrackingParticleMatchInfo.trackingParticle(), ntuple.SimHit.trackingParticle(), ntuple._HitObject.tracks(), ntuple.Vertex.tracks(), ntuple.Track.vertex(), and html.HtmlReport.write().

python.cmstools.EventBranch._readData
private

Definition at line 159 of file cmstools.py.

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