test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ntuple.TrackMatchInfo Class Reference
Inheritance diagram for ntuple.TrackMatchInfo:
ntuple._Object

Public Member Functions

def __init__
 
def track
 
- Public Member Functions inherited from ntuple._Object
def __getattr__
 
def __init__
 
def index
 
def isValid
 

Private Attributes

 _trkindex
 

Detailed Description

Class representing a match to a Track.

The point of this class is to provide, in addition to the matched
Track, also other information about the match (e.g. shared hit fraction.

Definition at line 431 of file ntuple.py.

Constructor & Destructor Documentation

def ntuple.TrackMatchInfo.__init__ (   self,
  tree,
  index,
  trkindex,
  prefix 
)
Constructor.

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

Definition at line 437 of file ntuple.py.

438  def __init__(self, tree, index, trkindex, prefix):
439  """Constructor.
440 
441  Arguments:
442  tree -- TTree object
443  index -- Index of the object (TrackingParticle) matched to track
444  trkindex -- Index of the track match (second index in _trkIdx branch)
445  prefix -- String for prefix of the object (TrackingParticle) matched to track
446  """
447  super(TrackMatchInfo, self).__init__(tree, index, prefix)
448  self._trkindex = trkindex

Member Function Documentation

def ntuple.TrackMatchInfo.track (   self)
Returns matched Track.

Definition at line 449 of file ntuple.py.

References ntuple._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, ntuple._Object._index, python.cmstools.EventBranch._index, html.HtmlReport._index, CommonAnalyzer._prefix, ntuple._Object._prefix, html.PageSet._prefix, ntuple._Collection._tree, python.cmstools.EventTree._tree, ntuple._Object._tree, and ntuple.TrackMatchInfo._trkindex.

450  def track(self):
451  """Returns matched Track."""
452  self._checkIsValid()
453  return Track(self._tree, getattr(self._tree, self._prefix+"_trkIdx")[self._index][self._trkindex])
def _checkIsValid
Definition: ntuple.py:97

Member Data Documentation

ntuple.TrackMatchInfo._trkindex
private

Definition at line 447 of file ntuple.py.

Referenced by ntuple.TrackMatchInfo.track().