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 

Member Function Documentation

◆ beamspot()

def ntupleDataFormat.Event.beamspot (   self)
Returns BeamSpot object.

Definition at line 486 of file ntupleDataFormat.py.

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

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

◆ entry()

def ntupleDataFormat.Event.entry (   self)

Definition at line 463 of file ntupleDataFormat.py.

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

References ntupleDataFormat.Event._entry.

◆ event()

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

Definition at line 466 of file ntupleDataFormat.py.

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

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

◆ eventId()

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

Definition at line 478 of file ntupleDataFormat.py.

478  def eventId(self):
479  """Returns (run, lumi, event) tuple."""
480  return (self._tree.run, self._tree.lumi, self._tree.event)
481 

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

Referenced by ntupleDataFormat.Event.eventIdStr().

◆ eventIdStr()

def ntupleDataFormat.Event.eventIdStr (   self)

◆ gluedHits()

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

Definition at line 502 of file ntupleDataFormat.py.

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

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

◆ lumi()

def ntupleDataFormat.Event.lumi (   self)
Returns lumisection number.

Definition at line 470 of file ntupleDataFormat.py.

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

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

◆ phase2OTHits()

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

Definition at line 506 of file ntupleDataFormat.py.

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

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

◆ pixelHits()

def ntupleDataFormat.Event.pixelHits (   self)
Returns PixelHits object.

Definition at line 494 of file ntupleDataFormat.py.

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

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

◆ run()

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

Definition at line 474 of file ntupleDataFormat.py.

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

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

◆ seeds()

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

Definition at line 510 of file ntupleDataFormat.py.

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

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

◆ stripHits()

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

Definition at line 498 of file ntupleDataFormat.py.

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

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

◆ trackingParticles()

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

Definition at line 514 of file ntupleDataFormat.py.

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

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

◆ trackingVertices()

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

Definition at line 522 of file ntupleDataFormat.py.

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

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

◆ tracks()

def ntupleDataFormat.Event.tracks (   self)
Returns Tracks object.

Definition at line 490 of file ntupleDataFormat.py.

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

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

◆ vertices()

def ntupleDataFormat.Event.vertices (   self)
Returns Vertices object.

Definition at line 518 of file ntupleDataFormat.py.

518  def vertices(self):
519  """Returns Vertices object."""
520  return Vertices(self._tree)
521 

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

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
align::BeamSpot
Definition: StructureType.h:95
mps_splice.entry
entry
Definition: mps_splice.py:68
HLTObjectsMonitor_cfi.beamspot
beamspot
Definition: HLTObjectsMonitor_cfi.py:11
AlignmentTracksFromVertexSelector_cfi.vertices
vertices
Definition: AlignmentTracksFromVertexSelector_cfi.py:5
BXlumiParameters_cfi.lumi
lumi
Definition: BXlumiParameters_cfi.py:6
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:176
muonClassificationByHits_cfi.trackingParticles
trackingParticles
Definition: muonClassificationByHits_cfi.py:28
edmPickEvents.event
event
Definition: edmPickEvents.py:273
gather_cfg.Tracks
Tracks
Definition: gather_cfg.py:251
writedatasetfile.run
run
Definition: writedatasetfile.py:27
DetachedQuadStep_cff.seeds
seeds
Definition: DetachedQuadStep_cff.py:195
InitialStepPreSplitting_cff.pixelHits
pixelHits
Definition: InitialStepPreSplitting_cff.py:142
fftjetpfpileupcleaner_cfi.Vertices
Vertices
Definition: fftjetpfpileupcleaner_cfi.py:12