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
ntuple._HitObject Class Reference
Inheritance diagram for ntuple._HitObject:
ntuple._Object ntuple.PixelHit ntuple.StripHit

Public Member Functions

def __init__
 
def nseeds
 
def ntracks
 
def seeds
 
def tracks
 
- Public Member Functions inherited from ntuple._Object
def __getattr__
 
def __init__
 
def index
 
def isValid
 

Detailed Description

Adaptor class for pixel/strip hit objects.

Definition at line 110 of file ntuple.py.

Constructor & Destructor Documentation

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

Arguments:
tree   -- TTree object
index  -- Index for this object
prefix -- Prefix of the branchs
Constructor

Definition at line 112 of file ntuple.py.

113  def __init__(self, tree, index, prefix):
114  """Constructor.
115 
116  Arguments:
117  tree -- TTree object
118  index -- Index for this object
119  prefix -- Prefix of the branchs
120  """
121  """Constructor
122  """
123  super(_HitObject, self).__init__(tree, index, prefix)

Member Function Documentation

def ntuple._HitObject.nseeds (   self)
Returns number of seeds containing this hit.

Definition at line 138 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 findQualityFiles.size.

139  def nseeds(self):
140  """Returns number of seeds containing this hit."""
141  self._checkIsValid()
142  return getattr(self._tree, self._prefix+"_seeIdx")[self._index].size()
def _checkIsValid
Definition: ntuple.py:97
tuple size
Write out results.
def ntuple._HitObject.ntracks (   self)
Returns number of tracks containing this hit.

Definition at line 124 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 findQualityFiles.size.

125  def ntracks(self):
126  """Returns number of tracks containing this hit."""
127  self._checkIsValid()
128  return getattr(self._tree, self._prefix+"_trkIdx")[self._index].size()
def _checkIsValid
Definition: ntuple.py:97
tuple size
Write out results.
def ntuple._HitObject.seeds (   self)
Returns generator for tracks containing this hit.

The generator returns Seed objects

Definition at line 143 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, and ntuple._Object._tree.

144  def seeds(self):
145  """Returns generator for tracks containing this hit.
146 
147  The generator returns Seed objects
148  """
149  self._checkIsValid()
150  for iseed in getattr(self._tree, self._prefix+"_seeIdx")[self._index]:
151  yield Seed(self._tree, iseed)
152 
def _checkIsValid
Definition: ntuple.py:97
def ntuple._HitObject.tracks (   self)
Returns generator for tracks containing this hit.

The generator returns Track objects

Definition at line 129 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, and ntuple._Object._tree.

130  def tracks(self):
131  """Returns generator for tracks containing this hit.
132 
133  The generator returns Track objects
134  """
135  self._checkIsValid()
136  for itrack in getattr(self._tree, self._prefix+"_trkIdx")[self._index]:
137  yield Track(self._tree, itrack)
def _checkIsValid
Definition: ntuple.py:97