test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ntuple.Seed Class Reference
Inheritance diagram for ntuple.Seed:
ntuple._Object ntuple._RecoHitAdaptor ntuple._TrackingParticleMatchAdaptor

Public Member Functions

def __init__
 
def indexWithinAlgo
 
def track
 
- Public Member Functions inherited from ntuple._Object
def __getattr__
 
def __init__
 
def index
 
def isValid
 
- Public Member Functions inherited from ntuple._RecoHitAdaptor
def __init__
 
def gluedHits
 
def hits
 
def invalidHits
 
def pixelHits
 
def stripHits
 
- Public Member Functions inherited from ntuple._TrackingParticleMatchAdaptor
def __init__
 
def matchedTrackingParticleInfos
 
def nMatchedTrackingParticles
 

Detailed Description

Class presenting a seed.

Definition at line 631 of file ntuple.py.

Constructor & Destructor Documentation

def ntuple.Seed.__init__ (   self,
  tree,
  index 
)
Constructor.

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

Definition at line 633 of file ntuple.py.

634  def __init__(self, tree, index):
635  """Constructor.
636 
637  Arguments:
638  tree -- TTree object
639  index -- Index of the seed
640  """
641  super(Seed, self).__init__(tree, index, "see")
def __init__
Definition: ntuple.py:633

Member Function Documentation

def ntuple.Seed.indexWithinAlgo (   self)
Returns the seed index within the seeds of the same algo.

In case of errors, -1 is returned.

Definition at line 642 of file ntuple.py.

References ntuple._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, ntuple._Object._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntuple._seedOffsetForAlgo(), ntuple._Collection._tree, python.cmstools.EventTree._tree, and ntuple._Object._tree.

643  def indexWithinAlgo(self):
644  """Returns the seed index within the seeds of the same algo.
645 
646  In case of errors, -1 is returned.
647  """
648  self._checkIsValid()
649  algo = self._tree.see_algo[self._index]
650  (offset, next_offset) = _seedOffsetForAlgo(self._tree, algo)
651  if offset == -1: # algo not found
652  return -1
653  return self._index - offset
def _seedOffsetForAlgo
Definition: ntuple.py:623
def _checkIsValid
Definition: ntuple.py:97
def indexWithinAlgo
Definition: ntuple.py:642
def ntuple.Seed.track (   self)
Returns Track that was made from this seed.

Definition at line 654 of file ntuple.py.

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

655  def track(self):
656  """Returns Track that was made from this seed."""
657  self._checkIsValid()
658  return Track(self._tree, self._tree.see_trkIdx[self._index])
def track
Definition: ntuple.py:654
def _checkIsValid
Definition: ntuple.py:97