CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ntuple.TrackingVertex Class Reference
Inheritance diagram for ntuple.TrackingVertex:
ntuple._Object ntuple.TrackingVertices

Public Member Functions

def __init__
 
def daughterTrackingParticles
 
def nDaughterTrackingParticles
 
def nSourceTrackingParticles
 
def sourceTrackingParticles
 
- Public Member Functions inherited from ntuple._Object
def __getattr__
 
def __init__
 
def index
 
def isValid
 

Detailed Description

Class representing a TrackingVertex.

Definition at line 794 of file ntuple.py.

Constructor & Destructor Documentation

def ntuple.TrackingVertex.__init__ (   self,
  tree,
  index 
)
Constructor.

Arguments:
tree  -- TTree object
index -- Index of the TrackingVertex

Definition at line 796 of file ntuple.py.

797  def __init__(self, tree, index):
798  """Constructor.
799 
800  Arguments:
801  tree -- TTree object
802  index -- Index of the TrackingVertex
803  """
804  super(TrackingVertex, self).__init__(tree, index, "simvtx")

Member Function Documentation

def ntuple.TrackingVertex.daughterTrackingParticles (   self)
Returns a generator for the daughter TrackingParticles.

Definition at line 821 of file ntuple.py.

References ntuple._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, ntuple._Object._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntuple._Collection._tree, python.cmstools.EventTree._tree, and ntuple._Object._tree.

822  def daughterTrackingParticles(self):
823  """Returns a generator for the daughter TrackingParticles."""
824  self._checkIsValid()
825  for isim in self._tree.simvtx_daughterSimIdx[self._index]:
826  yield TrackingParticle(self._tree, isim)
def daughterTrackingParticles
Definition: ntuple.py:821
def _checkIsValid
Definition: ntuple.py:97
def ntuple.TrackingVertex.nDaughterTrackingParticles (   self)
Returns the number of daughter TrackingParticles.

Definition at line 810 of file ntuple.py.

References ntuple._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, ntuple._Object._index, python.cmstools.EventBranch._index, html.HtmlReport._index, and findQualityFiles.size.

811  def nDaughterTrackingParticles(self):
812  """Returns the number of daughter TrackingParticles."""
813  self._checkIsValid()
814  return self._tree.simvtx_daughterSimIdx[self._index].size()
def _checkIsValid
Definition: ntuple.py:97
def nDaughterTrackingParticles
Definition: ntuple.py:810
tuple size
Write out results.
def ntuple.TrackingVertex.nSourceTrackingParticles (   self)
Returns the number of source TrackingParticles.

Definition at line 805 of file ntuple.py.

References ntuple._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, ntuple._Object._index, python.cmstools.EventBranch._index, html.HtmlReport._index, and findQualityFiles.size.

806  def nSourceTrackingParticles(self):
807  """Returns the number of source TrackingParticles."""
808  self._checkIsValid()
809  return self._tree.simvtx_sourceSimIdx[self._index].size()
def nSourceTrackingParticles
Definition: ntuple.py:805
def _checkIsValid
Definition: ntuple.py:97
tuple size
Write out results.
def ntuple.TrackingVertex.sourceTrackingParticles (   self)
Returns a generator for the source TrackingParticles.

Definition at line 815 of file ntuple.py.

References ntuple._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, ntuple._Object._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntuple._Collection._tree, python.cmstools.EventTree._tree, and ntuple._Object._tree.

816  def sourceTrackingParticles(self):
817  """Returns a generator for the source TrackingParticles."""
818  self._checkIsValid()
819  for isim in self._tree.simvtx_sourceSimIdx[self._index]:
820  yield TrackingParticle(self._tree, isim)
def _checkIsValid
Definition: ntuple.py:97
def sourceTrackingParticles
Definition: ntuple.py:815