CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def nRecHits
 
def trackingParticle
 
- Public Member Functions inherited from ntupleDataFormat._Object
def __getattr__
 
def __init__
 
def index
 
def isValid
 
- Public Member Functions inherited from ntupleDataFormat._DetIdStrAdaptor
def __init__
 
def detIdStr
 
def layerStr
 
- Public Member Functions inherited from ntupleDataFormat._RecoHitAdaptor
def __init__
 
def gluedHits
 
def hits
 
def invalidHits
 
def phase2OTHits
 
def pixelHits
 
def stripHits
 

Detailed Description

Class representing a SimHit which has not induced a RecHit.

Definition at line 951 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

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

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

Definition at line 953 of file ntupleDataFormat.py.

954  def __init__(self, tree, index):
955  """Constructor.
956 
957  Arguments:
958  tree -- TTree object
959  index -- Index of the SimHit
960  """
961  super(SimHit, self).__init__(tree, index, "simhit")

Member Function Documentation

def ntupleDataFormat.SimHit.nRecHits (   self)

Definition at line 962 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, and findQualityFiles.size.

963  def nRecHits(self):
964  self._checkIsValid()
965  return self._tree.simhit_hitIdx[self._index].size()
tuple size
Write out results.
def ntupleDataFormat.SimHit.trackingParticle (   self)

Definition at line 966 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, html.PageSet._prefix, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.

967  def trackingParticle(self):
968  self._checkIsValid()
969  return TrackingParticle(self._tree, getattr(self._tree, self._prefix+"_simTrkIdx")[self._index])