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 bestMatchingTrackingParticleFromFirstHit (self)
 
def bestMatchingTrackingParticleFromFirstHitNormalizedChi2 (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFrac (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFracSimClusterDenom (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFracSimDenom (self)
 
def bestMatchingTrackingParticleNormalizedChi2 (self)
 
def bestMatchingTrackingParticleShareFrac (self)
 
def bestMatchingTrackingParticleShareFracSimClusterDenom (self)
 
def bestMatchingTrackingParticleShareFracSimDenom (self)
 
def matchedTrackingParticleInfos (self)
 
def nMatchedTrackingParticles (self)
 

Detailed Description

Class presenting a seed.

Definition at line 892 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 894 of file ntupleDataFormat.py.

894  def __init__(self, tree, index):
895  """Constructor.
896 
897  Arguments:
898  tree -- TTree object
899  index -- Index of the seed
900  """
901  super(Seed, self).__init__(tree, index, "see")
902 
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 903 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.

903  def indexWithinAlgo(self):
904  """Returns the seed index within the seeds of the same algo.
905 
906  In case of errors, -1 is returned.
907  """
908  self._checkIsValid()
909  algo = self._tree.see_algo[self._index]
910  (offset, next_offset) = _seedOffsetForAlgo(self._tree, algo)
911  if offset == -1: # algo not found
912  return -1
913  return self._index - offset
914 
def _seedOffsetForAlgo(tree, algo)
def ntupleDataFormat.Seed.track (   self)