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

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

Member Function Documentation

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

Definition at line 462 of file ntupleDataFormat.py.

References ntupleDataFormat.Event._entry.

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

Definition at line 465 of file ntupleDataFormat.py.

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

Definition at line 477 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.eventIdStr().

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

Definition at line 469 of file ntupleDataFormat.py.

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

Definition at line 473 of file ntupleDataFormat.py.

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

Referenced by ntupleDataFormat.Event.entry().

ntupleDataFormat.Event._tree
private