CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, tree, index)
 
def indexWithinAlgo (self)
 
def track (self)
 
- Public Member Functions inherited from ntupleDataFormat._Object
def __getattr__ (self, attr)
 
def __init__ (self, tree, index, prefix)
 
def index (self)
 
def isValid (self)
 
- Public Member Functions inherited from ntupleDataFormat._RecoHitAdaptor
def __init__ (self)
 
def gluedHits (self)
 
def hits (self)
 
def invalidHits (self)
 
def phase2OTHits (self)
 
def pixelHits (self)
 
def stripHits (self)
 
- Public Member Functions inherited from ntupleDataFormat._TrackingParticleMatchAdaptor
def __init__ (self)
 
def bestMatchingTrackingParticle (self)
 
def matchedTrackingParticleInfos (self)
 
def nMatchedTrackingParticles (self)
 

Detailed Description

Class presenting a seed.

Definition at line 849 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

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

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

Definition at line 851 of file ntupleDataFormat.py.

851  def __init__(self, tree, index):
852  """Constructor.
853 
854  Arguments:
855  tree -- TTree object
856  index -- Index of the seed
857  """
858  super(Seed, self).__init__(tree, index, "see")
859 
def __init__(self, tree, index)

Member Function Documentation

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

In case of errors, -1 is returned.

Definition at line 860 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._seedOffsetForAlgo(), ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.

860  def indexWithinAlgo(self):
861  """Returns the seed index within the seeds of the same algo.
862 
863  In case of errors, -1 is returned.
864  """
865  self._checkIsValid()
866  algo = self._tree.see_algo[self._index]
867  (offset, next_offset) = _seedOffsetForAlgo(self._tree, algo)
868  if offset == -1: # algo not found
869  return -1
870  return self._index - offset
871 
def _seedOffsetForAlgo(tree, algo)
def ntupleDataFormat.Seed.track (   self)