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 780 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

◆ __init__()

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

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

Definition at line 782 of file ntupleDataFormat.py.

782  def __init__(self, tree, index):
783  """Constructor.
784 
785  Arguments:
786  tree -- TTree object
787  index -- Index of the hit
788  """
789  super(GluedHit, self).__init__(tree, index, "glu")
790 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ isValidHit()

def ntupleDataFormat.GluedHit.isValidHit (   self)

Definition at line 791 of file ntupleDataFormat.py.

791  def isValidHit(self):
792  return True
793 

◆ monoHit()

def ntupleDataFormat.GluedHit.monoHit (   self)

◆ nseeds()

def ntupleDataFormat.GluedHit.nseeds (   self)
Returns the number of seeds containing this hit.

Definition at line 804 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, and output.FullOutput._tree.

804  def nseeds(self):
805  """Returns the number of seeds containing this hit."""
806  self._checkIsValid()
807  return self._tree.glu_seeIdx[self._index].size()
808 

◆ seeds()

def ntupleDataFormat.GluedHit.seeds (   self)
Returns generator for seeds containing this hit.

The generator returns Seed objects

Definition at line 809 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, and output.FullOutput._tree.

809  def seeds(self):
810  """Returns generator for seeds containing this hit.
811 
812  The generator returns Seed objects
813  """
814  self._checkIsValid()
815  for iseed in self._tree.glu_seeIdx[self._index]:
816  yield Seed(self._tree, iseed)
817 

◆ stereoHit()

def ntupleDataFormat.GluedHit.stereoHit (   self)
Returns a StripHit for the stereo hit.

Definition at line 799 of file ntupleDataFormat.py.

References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, and output.FullOutput._tree.

799  def stereoHit(self):
800  """Returns a StripHit for the stereo hit."""
801  self._checkIsValid()
802  return StripHit(self._tree, self._tree.glu_stereoIdx[self._index])
803