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

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)
891 

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

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