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

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

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