CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 
def indexWithinAlgo
 
def track
 
- Public Member Functions inherited from ntupleDataFormat._Object
def __getattr__
 
def __init__
 
def index
 
def isValid
 
- Public Member Functions inherited from ntupleDataFormat._RecoHitAdaptor
def __init__
 
def gluedHits
 
def hits
 
def invalidHits
 
def phase2OTHits
 
def pixelHits
 
def stripHits
 
- Public Member Functions inherited from ntupleDataFormat._TrackingParticleMatchAdaptor
def __init__
 
def bestMatchingTrackingParticle
 
def bestMatchingTrackingParticleFromFirstHit
 
def bestMatchingTrackingParticleFromFirstHitNormalizedChi2
 
def bestMatchingTrackingParticleFromFirstHitShareFrac
 
def bestMatchingTrackingParticleFromFirstHitShareFracSimClusterDenom
 
def bestMatchingTrackingParticleFromFirstHitShareFracSimDenom
 
def bestMatchingTrackingParticleNormalizedChi2
 
def bestMatchingTrackingParticleShareFrac
 
def bestMatchingTrackingParticleShareFracSimClusterDenom
 
def bestMatchingTrackingParticleShareFracSimDenom
 
def matchedTrackingParticleInfos
 
def nMatchedTrackingParticles
 

Detailed Description

Class presenting a seed.

Definition at line 891 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 893 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")

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

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._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
def ntupleDataFormat.Seed.track (   self)
Returns Track that was made from this seed.

Definition at line 914 of file ntupleDataFormat.py.

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

915  def track(self):
916  """Returns Track that was made from this seed."""
917  self._checkIsValid()
918  return Track(self._tree, self._tree.see_trkIdx[self._index])