CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 

Function Documentation

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.

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

884 def _seedOffsetForAlgo(tree, algo):
885  """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."""
886  for ioffset, offset in enumerate(tree.see_offset):
887  if tree.see_algo[offset] == algo:
888  next_offset = tree.see_offset[ioffset+1] if ioffset < tree.see_offset.size()-1 else tree.see_algo.size()
889  return (offset, next_offset)
890  return (-1, -1)