CMS 3D CMS Logo

List of all members | Public Member Functions
ntupleDataFormat.TrackingVertex Class Reference
Inheritance diagram for ntupleDataFormat.TrackingVertex:
ntupleDataFormat._Object ntupleDataFormat.TrackingVertices

Public Member Functions

def __init__ (self, tree, index)
 
def daughterTrackingParticles (self)
 
def nDaughterTrackingParticles (self)
 
def nSourceTrackingParticles (self)
 
def sourceTrackingParticles (self)
 
- Public Member Functions inherited from ntupleDataFormat._Object
def __getattr__ (self, attr)
 
def __init__ (self, tree, index, prefix)
 
def index (self)
 
def isValid (self)
 

Detailed Description

Class representing a TrackingVertex.

Definition at line 1134 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

◆ __init__()

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

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

Definition at line 1136 of file ntupleDataFormat.py.

1136  def __init__(self, tree, index):
1137  """Constructor.
1138 
1139  Arguments:
1140  tree -- TTree object
1141  index -- Index of the TrackingVertex
1142  """
1143  super(TrackingVertex, self).__init__(tree, index, "simvtx")
1144 

Member Function Documentation

◆ daughterTrackingParticles()

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

Definition at line 1161 of file ntupleDataFormat.py.

1161  def daughterTrackingParticles(self):
1162  """Returns a generator for the daughter TrackingParticles."""
1163  self._checkIsValid()
1164  for isim in self._tree.simvtx_daughterSimIdx[self._index]:
1165  yield TrackingParticle(self._tree, isim)
1166 

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

◆ nDaughterTrackingParticles()

def ntupleDataFormat.TrackingVertex.nDaughterTrackingParticles (   self)
Returns the number of daughter TrackingParticles.

Definition at line 1150 of file ntupleDataFormat.py.

1150  def nDaughterTrackingParticles(self):
1151  """Returns the number of daughter TrackingParticles."""
1152  self._checkIsValid()
1153  return self._tree.simvtx_daughterSimIdx[self._index].size()
1154 

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, and findQualityFiles.size.

◆ nSourceTrackingParticles()

def ntupleDataFormat.TrackingVertex.nSourceTrackingParticles (   self)
Returns the number of source TrackingParticles.

Definition at line 1145 of file ntupleDataFormat.py.

1145  def nSourceTrackingParticles(self):
1146  """Returns the number of source TrackingParticles."""
1147  self._checkIsValid()
1148  return self._tree.simvtx_sourceSimIdx[self._index].size()
1149 

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, and findQualityFiles.size.

◆ sourceTrackingParticles()

def ntupleDataFormat.TrackingVertex.sourceTrackingParticles (   self)
Returns a generator for the source TrackingParticles.

Definition at line 1155 of file ntupleDataFormat.py.

1155  def sourceTrackingParticles(self):
1156  """Returns a generator for the source TrackingParticles."""
1157  self._checkIsValid()
1158  for isim in self._tree.simvtx_sourceSimIdx[self._index]:
1159  yield TrackingParticle(self._tree, isim)
1160 

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

TrackingParticle
Monte Carlo truth information used for tracking validation.
Definition: TrackingParticle.h:29
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443