CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, tree, index)
 
def isValidHit (self)
 
def layerStr (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)
 

Static Public Attributes

 bad
 
 inactive
 
 missing
 
 missing_inner
 
 missing_outer
 
 Type
 

Detailed Description

Definition at line 830 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

◆ __init__()

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

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

Definition at line 841 of file ntupleDataFormat.py.

841  def __init__(self, tree, index):
842  """Constructor.
843 
844  Arguments:
845  tree -- TTree object
846  index -- Index of the hit
847  """
848  super(InvalidHit, self).__init__(tree, index, "inv")
849 

Member Function Documentation

◆ isValidHit()

def ntupleDataFormat.InvalidHit.isValidHit (   self)

Definition at line 850 of file ntupleDataFormat.py.

850  def isValidHit(self):
851  return False
852 

◆ layerStr()

def ntupleDataFormat.InvalidHit.layerStr (   self)
Returns a string describing the layer of the hit.

Reimplemented from ntupleDataFormat._DetIdStrAdaptor.

Definition at line 853 of file ntupleDataFormat.py.

853  def layerStr(self):
854  """Returns a string describing the layer of the hit."""
855  invalid_type = self._tree.inv_type[self._index]
856  return super(InvalidHit, self).layerStr() + " (%s)"%InvalidHit.Type.toString(invalid_type)
857 

References SeedingNode< DATA >._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.

Member Data Documentation

◆ bad

ntupleDataFormat.InvalidHit.bad
static

Definition at line 835 of file ntupleDataFormat.py.

◆ inactive

ntupleDataFormat.InvalidHit.inactive
static

Definition at line 834 of file ntupleDataFormat.py.

◆ missing

ntupleDataFormat.InvalidHit.missing
static

Definition at line 833 of file ntupleDataFormat.py.

◆ missing_inner

ntupleDataFormat.InvalidHit.missing_inner
static

Definition at line 836 of file ntupleDataFormat.py.

◆ missing_outer

ntupleDataFormat.InvalidHit.missing_outer
static

Definition at line 837 of file ntupleDataFormat.py.

◆ Type

ntupleDataFormat.InvalidHit.Type
static

Definition at line 832 of file ntupleDataFormat.py.