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

◆ __init__()

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, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ beamspot()

def ntupleDataFormat.Event.beamspot (   self)

◆ entry()

def ntupleDataFormat.Event.entry (   self)

Definition at line 463 of file ntupleDataFormat.py.

References datamodel.Event._entry, and ntupleDataFormat.Event._entry.

463  def entry(self):
464  return self._entry
465 

◆ event()

def ntupleDataFormat.Event.event (   self)

◆ eventId()

def ntupleDataFormat.Event.eventId (   self)
Returns (run, lumi, event) tuple.

Definition at line 478 of file ntupleDataFormat.py.

References datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, output.OutputTree._tree, output.FullOutput._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

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 

◆ eventIdStr()

def ntupleDataFormat.Event.eventIdStr (   self)

◆ gluedHits()

def ntupleDataFormat.Event.gluedHits (   self)
Returns GluedHits object.

Definition at line 502 of file ntupleDataFormat.py.

References datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, output.OutputTree._tree, output.FullOutput._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

502  def gluedHits(self):
503  """Returns GluedHits object."""
504  return GluedHits(self._tree)
505 

◆ lumi()

def ntupleDataFormat.Event.lumi (   self)

◆ phase2OTHits()

def ntupleDataFormat.Event.phase2OTHits (   self)
Returns Phase2OTHits object.

Definition at line 506 of file ntupleDataFormat.py.

References datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, output.OutputTree._tree, output.FullOutput._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

506  def phase2OTHits(self):
507  """Returns Phase2OTHits object."""
508  return Phase2OTHits(self._tree)
509 

◆ pixelHits()

def ntupleDataFormat.Event.pixelHits (   self)

◆ run()

def ntupleDataFormat.Event.run (   self)

◆ seeds()

def ntupleDataFormat.Event.seeds (   self)

◆ stripHits()

def ntupleDataFormat.Event.stripHits (   self)
Returns StripHits object.

Definition at line 498 of file ntupleDataFormat.py.

References datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, output.OutputTree._tree, output.FullOutput._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

498  def stripHits(self):
499  """Returns StripHits object."""
500  return StripHits(self._tree)
501 

◆ trackingParticles()

def ntupleDataFormat.Event.trackingParticles (   self)
Returns TrackingParticles object.

Definition at line 514 of file ntupleDataFormat.py.

References datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, output.OutputTree._tree, output.FullOutput._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

514  def trackingParticles(self):
515  """Returns TrackingParticles object."""
516  return TrackingParticles(self._tree)
517 

◆ trackingVertices()

def ntupleDataFormat.Event.trackingVertices (   self)
Returns TrackingVertices object.

Definition at line 522 of file ntupleDataFormat.py.

References datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, output.OutputTree._tree, output.FullOutput._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

522  def trackingVertices(self):
523  """Returns TrackingVertices object."""
524  return TrackingVertices(self._tree)
525 

◆ tracks()

def ntupleDataFormat.Event.tracks (   self)

◆ vertices()

def ntupleDataFormat.Event.vertices (   self)

Member Data Documentation

◆ _entry

ntupleDataFormat.Event._entry
private

Definition at line 461 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.entry().

◆ _tree

ntupleDataFormat.Event._tree
private