CMS 3D CMS Logo

Classes | Functions
ntupleDataFormat Namespace Reference

Classes

class  _Collection
 
class  _DetIdStrAdaptor
 
class  _HitObject
 
class  _Object
 
class  _RecoHitAdaptor
 
class  _SimHitMatchAdaptor
 
class  _TrackingParticleMatchAdaptor
 
class  BeamSpot
 
class  Event
 
class  GluedHit
 
class  GluedHits
 
class  InvalidHit
 
class  Phase2OTHit
 
class  Phase2OTHits
 
class  PixelHit
 
class  PixelHits
 
class  Seed
 
class  SeedMatchInfo
 
class  Seeds
 
class  SimHit
 
class  SimHitMatchInfo
 
class  StripHit
 
class  StripHits
 
class  Track
 
class  TrackingNtuple
 
class  TrackingParticle
 
class  TrackingParticleMatchInfo
 
class  TrackingParticles
 
class  TrackingVertex
 
class  TrackingVertices
 
class  TrackMatchInfo
 
class  Tracks
 
class  Vertex
 
class  Vertices
 

Functions

def _seedOffsetForAlgo (tree, algo)
 

Function Documentation

◆ _seedOffsetForAlgo()

def ntupleDataFormat._seedOffsetForAlgo (   tree,
  algo 
)
private
Internal function for returning a pair of indices for the beginning of seeds of a given 'algo', and the one-beyond-last index of the seeds.

Definition at line 883 of file ntupleDataFormat.py.

883 def _seedOffsetForAlgo(tree, algo):
884  """Internal function for returning a pair of indices for the beginning of seeds of a given 'algo', and the one-beyond-last index of the seeds."""
885  for ioffset, offset in enumerate(tree.see_offset):
886  if tree.see_algo[offset] == algo:
887  next_offset = tree.see_offset[ioffset+1] if ioffset < tree.see_offset.size()-1 else tree.see_algo.size()
888  return (offset, next_offset)
889  return (-1, -1)
890 

Referenced by ntupleDataFormat.Seed.indexWithinAlgo(), ntupleDataFormat.Seeds.nSeedsForAlgo(), ntupleDataFormat.Seeds.seedForAlgo(), and ntupleDataFormat.Seeds.seedsForAlgo().

ntupleDataFormat._seedOffsetForAlgo
def _seedOffsetForAlgo(tree, algo)
Definition: ntupleDataFormat.py:883