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

423  def __init__(self, tree, entry):
424  """Constructor.
425 
426  Arguments:
427  tree -- TTree object
428  entry -- Entry number in the tree
429  """
430  super(Event, self).__init__()
431  self._tree = tree
432  self._entry = entry
433 
def __init__(self, tree, entry)

Member Function Documentation

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

Definition at line 434 of file ntupleDataFormat.py.

References ntupleDataFormat.Event._entry.

434  def entry(self):
435  return self._entry
436 
def ntupleDataFormat.Event.event (   self)
Returns event number.

Definition at line 437 of file ntupleDataFormat.py.

437  def event(self):
438  """Returns event number."""
439  return self._tree.event
440 
def ntupleDataFormat.Event.eventId (   self)
Returns (run, lumi, event) tuple.

Definition at line 449 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.eventIdStr().

449  def eventId(self):
450  """Returns (run, lumi, event) tuple."""
451  return (self._tree.run, self._tree.lumi, self._tree.event)
452 
def ntupleDataFormat.Event.eventIdStr (   self)
def ntupleDataFormat.Event.gluedHits (   self)
def ntupleDataFormat.Event.lumi (   self)
Returns lumisection number.

Definition at line 441 of file ntupleDataFormat.py.

441  def lumi(self):
442  """Returns lumisection number."""
443  return self._tree.lumi
444 
def ntupleDataFormat.Event.phase2OTHits (   self)
def ntupleDataFormat.Event.pixelHits (   self)
def ntupleDataFormat.Event.run (   self)
Returns run number.

Definition at line 445 of file ntupleDataFormat.py.

445  def run(self):
446  """Returns run number."""
447  return self._tree.run
448 
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 432 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.entry().

ntupleDataFormat.Event._tree
private