test
CMS 3D CMS Logo

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

Classes

class  Type
 

Public Member Functions

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

Detailed Description

Definition at line 586 of file ntuple.py.

Constructor & Destructor Documentation

def ntuple.InvalidHit.__init__ (   self,
  tree,
  index 
)
Constructor.

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

Definition at line 604 of file ntuple.py.

605  def __init__(self, tree, index):
606  """Constructor.
607 
608  Arguments:
609  tree -- TTree object
610  index -- Index of the hit
611  """
612  super(InvalidHit, self).__init__(tree, index, "inv")

Member Function Documentation

def ntuple.InvalidHit.isValidHit (   self)

Definition at line 613 of file ntuple.py.

614  def isValidHit(self):
615  return False
def ntuple.InvalidHit.layerStr (   self)
Returns a string describing the layer of the hit.

Definition at line 616 of file ntuple.py.

References SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, python.cmstools.EventTree._index, ntuple._Object._index, python.cmstools.EventBranch._index, and html.HtmlReport._index.

617  def layerStr(self):
618  """Returns a string describing the layer of the hit."""
619  det = self._tree.inv_det[self._index]
620  invalid_type = self._tree.inv_type[self._index]
621  return "%s%d (%s)" % (SubDet.toString(det), self._tree.inv_lay[self._index], InvalidHit.Type._toString[invalid_type])