CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ntupleDataFormat.Event Class Reference
Inheritance diagram for ntupleDataFormat.Event:

Public Member Functions

def __init__ (self, tree, entry)
 
def beamspot (self)
 
def entry (self)
 
def event (self)
 
def eventId (self)
 
def eventIdStr (self)
 
def gluedHits (self)
 
def lumi (self)
 
def phase2OTHits (self)
 
def pixelHits (self)
 
def run (self)
 
def seeds (self)
 
def stripHits (self)
 
def trackingParticles (self)
 
def trackingVertices (self)
 
def tracks (self)
 
def vertices (self)
 

Private Attributes

 _entry
 
 _tree
 

Detailed Description

Class abstracting a single event.

Main benefit is to provide nice interface to get various objects
or collections of objects.

Definition at line 446 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

def ntupleDataFormat.Event.__init__ (   self,
  tree,
  entry 
)
Constructor.

Arguments:
tree  -- TTree object
entry -- Entry number in the tree

Definition at line 452 of file ntupleDataFormat.py.

452  def __init__(self, tree, entry):
453  """Constructor.
454 
455  Arguments:
456  tree -- TTree object
457  entry -- Entry number in the tree
458  """
459  super(Event, self).__init__()
460  self._tree = tree
461  self._entry = entry
462 
def __init__(self, tree, entry)

Member Function Documentation

def ntupleDataFormat.Event.beamspot (   self)
def ntupleDataFormat.Event.entry (   self)

Definition at line 463 of file ntupleDataFormat.py.

References ntupleDataFormat.Event._entry.

463  def entry(self):
464  return self._entry
465 
def ntupleDataFormat.Event.event (   self)
Returns event number.

Definition at line 466 of file ntupleDataFormat.py.

466  def event(self):
467  """Returns event number."""
468  return self._tree.event
469 
def ntupleDataFormat.Event.eventId (   self)
Returns (run, lumi, event) tuple.

Definition at line 478 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.eventIdStr().

478  def eventId(self):
479  """Returns (run, lumi, event) tuple."""
480  return (self._tree.run, self._tree.lumi, self._tree.event)
481 
def ntupleDataFormat.Event.eventIdStr (   self)
def ntupleDataFormat.Event.gluedHits (   self)
def ntupleDataFormat.Event.lumi (   self)
Returns lumisection number.

Definition at line 470 of file ntupleDataFormat.py.

470  def lumi(self):
471  """Returns lumisection number."""
472  return self._tree.lumi
473 
def ntupleDataFormat.Event.phase2OTHits (   self)
def ntupleDataFormat.Event.pixelHits (   self)
def ntupleDataFormat.Event.run (   self)
Returns run number.

Definition at line 474 of file ntupleDataFormat.py.

474  def run(self):
475  """Returns run number."""
476  return self._tree.run
477 
def ntupleDataFormat.Event.seeds (   self)
def ntupleDataFormat.Event.stripHits (   self)
def ntupleDataFormat.Event.trackingParticles (   self)
def ntupleDataFormat.Event.trackingVertices (   self)
def ntupleDataFormat.Event.tracks (   self)
def ntupleDataFormat.Event.vertices (   self)

Member Data Documentation

ntupleDataFormat.Event._entry
private

Definition at line 461 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.entry().

ntupleDataFormat.Event._tree
private