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

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

Member Function Documentation

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

Definition at line 464 of file ntupleDataFormat.py.

References ntupleDataFormat.Event._entry.

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

Definition at line 467 of file ntupleDataFormat.py.

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

Definition at line 479 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.eventIdStr().

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

Definition at line 471 of file ntupleDataFormat.py.

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

Definition at line 475 of file ntupleDataFormat.py.

475  def run(self):
476  """Returns run number."""
477  return self._tree.run
478 
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 462 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.entry().

ntupleDataFormat.Event._tree
private