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 447 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 453 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
463 

Member Function Documentation

◆ beamspot()

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

Definition at line 487 of file ntupleDataFormat.py.

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

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

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

References ntupleDataFormat.Event._entry.

◆ event()

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

Definition at line 467 of file ntupleDataFormat.py.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Referenced by ntupleDataFormat.Event.entry().

◆ _tree

ntupleDataFormat.Event._tree
private
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
align::BeamSpot
Definition: StructureType.h:89
mps_splice.entry
entry
Definition: mps_splice.py:68
HLTObjectsMonitor_cfi.beamspot
beamspot
Definition: HLTObjectsMonitor_cfi.py:11
BXlumiParameters_cfi.lumi
lumi
Definition: BXlumiParameters_cfi.py:6
InitialStep_cff.seeds
seeds
Definition: InitialStep_cff.py:232
pfPileUpJME_cfi.Vertices
Vertices
Definition: pfPileUpJME_cfi.py:6
muonClassificationByHits_cfi.trackingParticles
trackingParticles
Definition: muonClassificationByHits_cfi.py:28
gather_cfg.Tracks
Tracks
Definition: gather_cfg.py:251
writedatasetfile.run
run
Definition: writedatasetfile.py:27
event
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of "!*" before the partial wildcard feature was incorporated). The per-event "cost" of each negative criterion with multiple relevant triggers is about the same as ! *was in the past
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7