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 | Private Attributes
ntupleDataFormat.SeedMatchInfo Class Reference
Inheritance diagram for ntupleDataFormat.SeedMatchInfo:
ntupleDataFormat._Object

Public Member Functions

def __init__
 
def seed
 
- Public Member Functions inherited from ntupleDataFormat._Object
def __getattr__
 
def __init__
 
def index
 
def isValid
 

Private Attributes

 _seedindex
 

Detailed Description

Class representing a match to a Seed.

The point of this class is to provide an interface compatible with
all other "MatchInfo" classes

Definition at line 643 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

def ntupleDataFormat.SeedMatchInfo.__init__ (   self,
  tree,
  index,
  seedindex,
  prefix 
)
Constructor.

Arguments:
tree     -- TTree object
index    -- Index of the object (TrackingParticle) matched to seed
seedindex -- Index of the seed match (second index in _trkIdx branch)
prefix   -- String for prefix of the object (TrackingParticle) matched to seed

Definition at line 650 of file ntupleDataFormat.py.

651  def __init__(self, tree, index, seedindex, prefix):
652  """Constructor.
653 
654  Arguments:
655  tree -- TTree object
656  index -- Index of the object (TrackingParticle) matched to seed
657  seedindex -- Index of the seed match (second index in _trkIdx branch)
658  prefix -- String for prefix of the object (TrackingParticle) matched to seed
659  """
660  super(SeedMatchInfo, self).__init__(tree, index, prefix)
661  self._seedindex = seedindex

Member Function Documentation

def ntupleDataFormat.SeedMatchInfo.seed (   self)
Returns matched Seed.

Definition at line 662 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, CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, html.PageSet._prefix, ntupleDataFormat.SeedMatchInfo._seedindex, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.

663  def seed(self):
664  """Returns matched Seed."""
665  self._checkIsValid()
666  return Seed(self._tree, getattr(self._tree, self._prefix+"_seedIdx")[self._index][self._seedindex])

Member Data Documentation

ntupleDataFormat.SeedMatchInfo._seedindex
private

Definition at line 660 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.SeedMatchInfo.seed().