CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
ntupleDataFormat.Event Class Reference
Inheritance diagram for ntupleDataFormat.Event:

Public Member Functions

def __init__
 
def beamspot
 
def entry
 
def event
 
def eventId
 
def eventIdStr
 
def gluedHits
 
def lumi
 
def phase2OTHits
 
def pixelHits
 
def run
 
def seeds
 
def stripHits
 
def trackingParticles
 
def trackingVertices
 
def tracks
 
def vertices
 

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

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.

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

Member Function Documentation

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.

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

Definition at line 463 of file ntupleDataFormat.py.

References ntupleDataFormat.Event._entry.

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

Definition at line 466 of file ntupleDataFormat.py.

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

Definition at line 478 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.eventIdStr().

479  def eventId(self):
480  """Returns (run, lumi, event) tuple."""
481  return (self._tree.run, self._tree.lumi, self._tree.event)
def ntupleDataFormat.Event.eventIdStr (   self)
Returns 'run:lumi:event' string.

Definition at line 482 of file ntupleDataFormat.py.

References SimHitInfoForLinks.eventId(), DigitizerUtility::SimHitInfo.eventId(), CoreSimVertex.eventId(), FastSingleTrackerRecHit.eventId(), CoreSimTrack.eventId(), FastMatchedTrackerRecHit.eventId(), FastProjectedTrackerRecHit.eventId(), PixelDigiSimLink.eventId(), StripDigiSimLink.eventId(), GctBlockHeader.eventId(), DTDigiSimLink.eventId(), PCaloHit.eventId(), XMLEventWriter.eventId, CaloParticle.eventId(), SimCluster.eventId(), TrackingParticle.eventId(), TrackingVertex.eventId(), StripCompactDigiSimLinks::RevLink.eventId, Primary4DVertexValidation::simPrimaryVertex.eventId, AlignmentAlgorithmBase::EventInfo.eventId(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex.eventId, sistrip::SpyEventMatcher::EventKey.eventId(), FastTrackerRecHit.eventId(), PSimHit.eventId(), MatacqTBRawEvent.eventId, MatacqRawEvent.eventId, and ntupleDataFormat.Event.eventId().

483  def eventIdStr(self):
484  """Returns 'run:lumi:event' string."""
485  return "%d:%d:%d" % self.eventId()
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.

503  def gluedHits(self):
504  """Returns GluedHits object."""
505  return GluedHits(self._tree)
def ntupleDataFormat.Event.lumi (   self)
Returns lumisection number.

Definition at line 470 of file ntupleDataFormat.py.

Referenced by upgradeWorkflowComponents.UpgradeWorkflowAging.setup_().

471  def lumi(self):
472  """Returns lumisection number."""
473  return self._tree.lumi
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.

507  def phase2OTHits(self):
508  """Returns Phase2OTHits object."""
509  return Phase2OTHits(self._tree)
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.

495  def pixelHits(self):
496  """Returns PixelHits object."""
497  return PixelHits(self._tree)
def ntupleDataFormat.Event.run (   self)
Returns run number.

Definition at line 474 of file ntupleDataFormat.py.

475  def run(self):
476  """Returns run number."""
477  return self._tree.run
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.

511  def seeds(self):
512  """Returns Seeds object."""
513  return Seeds(self._tree)
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.

499  def stripHits(self):
500  """Returns StripHits object."""
501  return StripHits(self._tree)
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.

515  def trackingParticles(self):
516  """Returns TrackingParticles object."""
517  return TrackingParticles(self._tree)
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.

523  def trackingVertices(self):
524  """Returns TrackingVertices object."""
525  return TrackingVertices(self._tree)
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.

491  def tracks(self):
492  """Returns Tracks object."""
493  return Tracks(self._tree)
def ntupleDataFormat.Event.vertices (   self)
Returns Vertices object.

Definition at line 518 of file ntupleDataFormat.py.

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

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

Member Data Documentation

ntupleDataFormat.Event._entry
private

Definition at line 461 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.Event.entry().

ntupleDataFormat.Event._tree
private

Definition at line 460 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.BeamSpot.__getattr__(), ntupleDataFormat._SimHitMatchAdaptor._nMatchedSimHits(), ntupleDataFormat._TrackingParticleMatchAdaptor._nMatchedTrackingParticles(), ntupleDataFormat.Event.beamspot(), ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticleFromFirstHit(), ntupleDataFormat._DetIdStrAdaptor.detIdStr(), ntupleDataFormat._RecoHitAdaptor.gluedHits(), ntupleDataFormat.Event.gluedHits(), ntupleDataFormat._RecoHitAdaptor.hits(), ntupleDataFormat._RecoHitAdaptor.invalidHits(), ntupleDataFormat._DetIdStrAdaptor.layerStr(), ntupleDataFormat._SimHitMatchAdaptor.matchedSimHitInfos(), ntupleDataFormat._TrackingParticleMatchAdaptor.matchedTrackingParticleInfos(), ntupleDataFormat._RecoHitAdaptor.phase2OTHits(), ntupleDataFormat.Event.phase2OTHits(), ntupleDataFormat._RecoHitAdaptor.pixelHits(), ntupleDataFormat.Event.pixelHits(), ntupleDataFormat.Event.seeds(), ntupleDataFormat._RecoHitAdaptor.stripHits(), ntupleDataFormat.Event.stripHits(), ntupleDataFormat.Event.trackingParticles(), ntupleDataFormat.Event.trackingVertices(), ntupleDataFormat.Event.tracks(), and ntupleDataFormat.Event.vertices().