test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ntuple.Seeds Class Reference
Inheritance diagram for ntuple.Seeds:
ntuple._Collection

Public Member Functions

def __init__
 
def nSeedsForAlgo
 
def seedsForAlgo
 
- Public Member Functions inherited from ntuple._Collection
def __getitem__
 
def __init__
 
def __iter__
 
def __len__
 
def size
 

Detailed Description

Class presenting a collection of seeds.

Definition at line 659 of file ntuple.py.

Constructor & Destructor Documentation

def ntuple.Seeds.__init__ (   self,
  tree 
)
Constructor.

Arguments:
tree -- TTree object

Definition at line 661 of file ntuple.py.

662  def __init__(self, tree):
663  """Constructor.
664 
665  Arguments:
666  tree -- TTree object
667  """
668  super(Seeds, self).__init__(tree, "see_pt", Seed)
def __init__
Definition: ntuple.py:661

Member Function Documentation

def ntuple.Seeds.nSeedsForAlgo (   self,
  algo 
)
Returns the number of seeds for a given 'algo'.

Definition at line 669 of file ntuple.py.

References ntuple._seedOffsetForAlgo(), ntuple._Collection._tree, and python.cmstools.EventTree._tree.

670  def nSeedsForAlgo(self, algo):
671  """Returns the number of seeds for a given 'algo'."""
672  (offset, next_offset) = _seedOffsetForAlgo(self._tree, algo)
673  return next_offset - offset
def nSeedsForAlgo
Definition: ntuple.py:669
def _seedOffsetForAlgo
Definition: ntuple.py:623
def ntuple.Seeds.seedsForAlgo (   self,
  algo 
)
Returns gnerator iterating over the seeds of a given 'algo'.

Generator returns Seed object.

Definition at line 674 of file ntuple.py.

References ntuple._seedOffsetForAlgo(), ntuple._Collection._tree, and python.cmstools.EventTree._tree.

675  def seedsForAlgo(self, algo):
676  """Returns gnerator iterating over the seeds of a given 'algo'.
677 
678  Generator returns Seed object.
679  """
680  (offset, next_offset) = _seedOffsetForAlgo(self._tree, algo)
681  for isee in xrange(offset, next_offset):
682  yield Seed(self._tree, isee)
def _seedOffsetForAlgo
Definition: ntuple.py:623
def seedsForAlgo
Definition: ntuple.py:674