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)
Returns BeamSpot object.

Definition at line 486 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

486  def beamspot(self):
487  """Returns BeamSpot object."""
488  return BeamSpot(self._tree)
489 

◆ entry()

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 

◆ event()

def ntupleDataFormat.Event.event (   self)
Returns event number.

Definition at line 466 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

466  def event(self):
467  """Returns event number."""
468  return self._tree.event
469 

◆ eventId()

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

Definition at line 478 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._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 ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._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)
Returns lumisection number.

Definition at line 470 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

470  def lumi(self):
471  """Returns lumisection number."""
472  return self._tree.lumi
473 

◆ phase2OTHits()

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

Definition at line 506 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._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)
Returns PixelHits object.

Definition at line 494 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

494  def pixelHits(self):
495  """Returns PixelHits object."""
496  return PixelHits(self._tree)
497 

◆ run()

def ntupleDataFormat.Event.run (   self)
Returns run number.

Definition at line 474 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

474  def run(self):
475  """Returns run number."""
476  return self._tree.run
477 

◆ seeds()

def ntupleDataFormat.Event.seeds (   self)
Returns Seeds object.

Definition at line 510 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

510  def seeds(self):
511  """Returns Seeds object."""
512  return Seeds(self._tree)
513 

◆ stripHits()

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

Definition at line 498 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._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 ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._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 ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._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)
Returns Tracks object.

Definition at line 490 of file ntupleDataFormat.py.

References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ntupleDataFormat.TrackingNtuple._tree, and ntupleDataFormat.Event._tree.

490  def tracks(self):
491  """Returns Tracks object."""
492  return Tracks(self._tree)
493 

◆ 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