CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, tree, index)
 
def nTracks (self)
 
def tracks (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 presenting a primary vertex.

Definition at line 1096 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

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

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

Definition at line 1098 of file ntupleDataFormat.py.

1098  def __init__(self, tree, index):
1099  """Constructor.
1100 
1101  Arguments:
1102  tree -- TTree object
1103  index -- Index of the vertex
1104  """
1105  super(Vertex, self).__init__(tree, index, "vtx")
1106 
def __init__(self, tree, index)

Member Function Documentation

def ntupleDataFormat.Vertex.nTracks (   self)
Returns the number of tracks used in the vertex fit.

Definition at line 1107 of file ntupleDataFormat.py.

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

1107  def nTracks(self):
1108  """Returns the number of tracks used in the vertex fit."""
1109  self._checkIsValid()
1110  return self._tree.vtx_trkIdx[self._index].size()
1111 
size
Write out results.
def ntupleDataFormat.Vertex.tracks (   self)
Returns a generator for the tracks used in the vertex fit.

The generator returns Track object.

Definition at line 1112 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._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.

1112  def tracks(self):
1113  """Returns a generator for the tracks used in the vertex fit.
1114 
1115  The generator returns Track object.
1116  """
1117  self._checkIsValid()
1118  for itrk in self._tree.vtx_trkIdx[self._index]:
1119  yield Track(self._tree, itrk)
1120