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 1133 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 1135 of file ntupleDataFormat.py.

1135  def __init__(self, tree, index):
1136  """Constructor.
1137 
1138  Arguments:
1139  tree -- TTree object
1140  index -- Index of the TrackingVertex
1141  """
1142  super(TrackingVertex, self).__init__(tree, index, "simvtx")
1143 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ daughterTrackingParticles()

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

Definition at line 1160 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._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.

1160  def daughterTrackingParticles(self):
1161  """Returns a generator for the daughter TrackingParticles."""
1162  self._checkIsValid()
1163  for isim in self._tree.simvtx_daughterSimIdx[self._index]:
1164  yield TrackingParticle(self._tree, isim)
1165 
Monte Carlo truth information used for tracking validation.

◆ nDaughterTrackingParticles()

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

Definition at line 1149 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._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.

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

◆ nSourceTrackingParticles()

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

Definition at line 1144 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._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.

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

◆ sourceTrackingParticles()

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

Definition at line 1154 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._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.

1154  def sourceTrackingParticles(self):
1155  """Returns a generator for the source TrackingParticles."""
1156  self._checkIsValid()
1157  for isim in self._tree.simvtx_sourceSimIdx[self._index]:
1158  yield TrackingParticle(self._tree, isim)
1159 
Monte Carlo truth information used for tracking validation.