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

Constructor & Destructor Documentation

◆ __init__()

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

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

Definition at line 1100 of file ntupleDataFormat.py.

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

Member Function Documentation

◆ nTracks()

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

Definition at line 1109 of file ntupleDataFormat.py.

1109  def nTracks(self):
1110  """Returns the number of tracks used in the vertex fit."""
1111  self._checkIsValid()
1112  return self._tree.vtx_trkIdx[self._index].size()
1113 

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.

◆ tracks()

def ntupleDataFormat.Vertex.tracks (   self)
Returns a generator for the tracks used in the vertex fit.

The generator returns Track object.

Definition at line 1114 of file ntupleDataFormat.py.

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

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.

BeamSpotPI::nTracks
Definition: BeamSpotPayloadInspectorHelper.h:42
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443