CMS 3D CMS Logo

List of all members | Public Member Functions
ntupleDataFormat.Seed Class Reference
Inheritance diagram for ntupleDataFormat.Seed:
ntupleDataFormat._Object ntupleDataFormat._RecoHitAdaptor ntupleDataFormat._TrackingParticleMatchAdaptor

Public Member Functions

def __init__ (self, tree, index)
 
def indexWithinAlgo (self)
 
def track (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._RecoHitAdaptor
def __init__ (self)
 
def gluedHits (self)
 
def hits (self)
 
def invalidHits (self)
 
def phase2OTHits (self)
 
def pixelHits (self)
 
def stripHits (self)
 
- Public Member Functions inherited from ntupleDataFormat._TrackingParticleMatchAdaptor
def __init__ (self)
 
def bestMatchingTrackingParticle (self)
 
def bestMatchingTrackingParticleFromFirstHit (self)
 
def bestMatchingTrackingParticleFromFirstHitNormalizedChi2 (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFrac (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFracSimClusterDenom (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFracSimDenom (self)
 
def bestMatchingTrackingParticleNormalizedChi2 (self)
 
def bestMatchingTrackingParticleShareFrac (self)
 
def bestMatchingTrackingParticleShareFracSimClusterDenom (self)
 
def bestMatchingTrackingParticleShareFracSimDenom (self)
 
def matchedTrackingParticleInfos (self)
 
def nMatchedTrackingParticles (self)
 

Detailed Description

Class presenting a seed.

Definition at line 891 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

◆ __init__()

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

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

Definition at line 893 of file ntupleDataFormat.py.

893  def __init__(self, tree, index):
894  """Constructor.
895 
896  Arguments:
897  tree -- TTree object
898  index -- Index of the seed
899  """
900  super(Seed, self).__init__(tree, index, "see")
901 
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

◆ indexWithinAlgo()

def ntupleDataFormat.Seed.indexWithinAlgo (   self)
Returns the seed index within the seeds of the same algo.

In case of errors, -1 is returned.

Definition at line 902 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, ntupleDataFormat._seedOffsetForAlgo(), datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, output.OutputTree._tree, and output.FullOutput._tree.

902  def indexWithinAlgo(self):
903  """Returns the seed index within the seeds of the same algo.
904 
905  In case of errors, -1 is returned.
906  """
907  self._checkIsValid()
908  algo = self._tree.see_algo[self._index]
909  (offset, next_offset) = _seedOffsetForAlgo(self._tree, algo)
910  if offset == -1: # algo not found
911  return -1
912  return self._index - offset
913 
def _seedOffsetForAlgo(tree, algo)

◆ track()

def ntupleDataFormat.Seed.track (   self)