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

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

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

841 def _seedOffsetForAlgo(tree, algo):
842  """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."""
843  for ioffset, offset in enumerate(tree.see_offset):
844  if tree.see_algo[offset] == algo:
845  next_offset = tree.see_offset[ioffset+1] if ioffset < tree.see_offset.size()-1 else tree.see_algo.size()
846  return (offset, next_offset)
847  return (-1, -1)
848 
def _seedOffsetForAlgo(tree, algo)