CMS 3D CMS Logo

List of all members | Public Member Functions
ntupleDataFormat.GluedHit Class Reference
Inheritance diagram for ntupleDataFormat.GluedHit:
ntupleDataFormat._Object ntupleDataFormat._DetIdStrAdaptor

Public Member Functions

def __init__ (self, tree, index)
 
def isValidHit (self)
 
def monoHit (self)
 
def nseeds (self)
 
def seeds (self)
 
def stereoHit (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._DetIdStrAdaptor
def __init__ (self)
 
def detIdStr (self)
 
def layerStr (self)
 

Detailed Description

Class representing a matched strip hit.

Definition at line 738 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

def ntupleDataFormat.GluedHit.__init__ (   self,
  tree,
  index 
)
Constructor.

Arguments:
tree  -- TTree object
index -- Index of the hit

Definition at line 740 of file ntupleDataFormat.py.

740  def __init__(self, tree, index):
741  """Constructor.
742 
743  Arguments:
744  tree -- TTree object
745  index -- Index of the hit
746  """
747  super(GluedHit, self).__init__(tree, index, "glu")
748 
def __init__(self, tree, index)

Member Function Documentation

def ntupleDataFormat.GluedHit.isValidHit (   self)

Definition at line 749 of file ntupleDataFormat.py.

749  def isValidHit(self):
750  return True
751 
def ntupleDataFormat.GluedHit.monoHit (   self)
def ntupleDataFormat.GluedHit.nseeds (   self)
Returns the number of seeds containing this hit.

Definition at line 762 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, and findQualityFiles.size.

762  def nseeds(self):
763  """Returns the number of seeds containing this hit."""
764  self._checkIsValid()
765  return self._tree.glu_seeIdx[self._index].size()
766 
size
Write out results.
def ntupleDataFormat.GluedHit.seeds (   self)
Returns generator for seeds containing this hit.

The generator returns Seed objects

Definition at line 767 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._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.

767  def seeds(self):
768  """Returns generator for seeds containing this hit.
769 
770  The generator returns Seed objects
771  """
772  self._checkIsValid()
773  for iseed in self._tree.glu_seeIdx[self._index]:
774  yield Seed(self._tree, iseed)
775 
def ntupleDataFormat.GluedHit.stereoHit (   self)