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

1099  def __init__(self, tree, index):
1100  """Constructor.
1101 
1102  Arguments:
1103  tree -- TTree object
1104  index -- Index of the vertex
1105  """
1106  super(Vertex, self).__init__(tree, index, "vtx")
1107 
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

◆ nTracks()

def ntupleDataFormat.Vertex.nTracks (   self)

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

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, output.OutputTree._tree, and output.FullOutput._tree.

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