CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def beamspot
 
def entry
 
def event
 
def gluedHits
 
def lumi
 
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 315 of file ntuple.py.

Constructor & Destructor Documentation

def ntuple.Event.__init__ (   self,
  tree,
  entry 
)
Constructor.

Arguments:
tree  -- TTree object
entry -- Entry number in the tree

Definition at line 321 of file ntuple.py.

322  def __init__(self, tree, entry):
323  """Constructor.
324 
325  Arguments:
326  tree -- TTree object
327  entry -- Entry number in the tree
328  """
329  super(Event, self).__init__()
330  self._tree = tree
331  self._entry = entry
def __init__
Definition: ntuple.py:321

Member Function Documentation

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

Definition at line 346 of file ntuple.py.

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

347  def beamspot(self):
348  """Returns BeamSpot object."""
349  return BeamSpot(self._tree)
def beamspot
Definition: ntuple.py:346
def ntuple.Event.entry (   self)

Definition at line 332 of file ntuple.py.

References ntuple.Event._entry.

333  def entry(self):
334  return self._entry
def entry
Definition: ntuple.py:332
def ntuple.Event.event (   self)

Definition at line 335 of file ntuple.py.

336  def event(self):
337  return self._tree.event
def event
Definition: ntuple.py:335
def ntuple.Event.gluedHits (   self)
Returns GluedHits object.

Definition at line 362 of file ntuple.py.

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

363  def gluedHits(self):
364  """Returns GluedHits object."""
365  return GluedHits(self._tree)
def gluedHits
Definition: ntuple.py:362
def ntuple.Event.lumi (   self)
Returns lumisection number.

Definition at line 338 of file ntuple.py.

339  def lumi(self):
340  """Returns lumisection number."""
341  return self._tree.lumi
def lumi
Definition: ntuple.py:338
def ntuple.Event.pixelHits (   self)
Returns PixelHits object.

Definition at line 354 of file ntuple.py.

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

355  def pixelHits(self):
356  """Returns PixelHits object."""
357  return PixelHits(self._tree)
def pixelHits
Definition: ntuple.py:354
def ntuple.Event.run (   self)
Returns run number.

Definition at line 342 of file ntuple.py.

343  def run(self):
344  """Returns run number."""
345  return self._tree.run
def ntuple.Event.seeds (   self)
Returns Seeds object.

Definition at line 366 of file ntuple.py.

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

367  def seeds(self):
368  """Returns Seeds object."""
369  return Seeds(self._tree)
def seeds
Definition: ntuple.py:366
def ntuple.Event.stripHits (   self)
Returns StripHits object.

Definition at line 358 of file ntuple.py.

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

359  def stripHits(self):
360  """Returns StripHits object."""
361  return StripHits(self._tree)
def stripHits
Definition: ntuple.py:358
def ntuple.Event.trackingParticles (   self)
Returns TrackingParticles object.

Definition at line 370 of file ntuple.py.

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

371  def trackingParticles(self):
372  """Returns TrackingParticles object."""
373  return TrackingParticles(self._tree)
def trackingParticles
Definition: ntuple.py:370
def ntuple.Event.trackingVertices (   self)
Returns TrackingVertices object.

Definition at line 378 of file ntuple.py.

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

379  def trackingVertices(self):
380  """Returns TrackingVertices object."""
381  return TrackingVertices(self._tree)
def trackingVertices
Definition: ntuple.py:378
def ntuple.Event.tracks (   self)
Returns Tracks object.

Definition at line 350 of file ntuple.py.

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

351  def tracks(self):
352  """Returns Tracks object."""
353  return Tracks(self._tree)
def tracks
Definition: ntuple.py:350
def ntuple.Event.vertices (   self)
Returns Vertices object.

Definition at line 374 of file ntuple.py.

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

375  def vertices(self):
376  """Returns Vertices object."""
377  return Vertices(self._tree)
def vertices
Definition: ntuple.py:374

Member Data Documentation

ntuple.Event._entry
private

Definition at line 330 of file ntuple.py.

Referenced by ntuple.Event.entry().

ntuple.Event._tree
private

Definition at line 329 of file ntuple.py.

Referenced by ntuple.BeamSpot.__getattr__(), ntuple._TrackingParticleMatchAdaptor._nMatchedTrackingParticles(), ntuple.Event.beamspot(), ntuple._RecoHitAdaptor.gluedHits(), ntuple.Event.gluedHits(), ntuple._RecoHitAdaptor.hits(), ntuple._RecoHitAdaptor.invalidHits(), ntuple._LayerStrAdaptor.layerStr(), ntuple._TrackingParticleMatchAdaptor.matchedTrackingParticleInfos(), ntuple._RecoHitAdaptor.pixelHits(), ntuple.Event.pixelHits(), ntuple.Event.seeds(), ntuple._SimHitAdaptor.simHits(), ntuple._RecoHitAdaptor.stripHits(), ntuple.Event.stripHits(), ntuple.Event.trackingParticles(), ntuple.Event.trackingVertices(), ntuple.Event.tracks(), and ntuple.Event.vertices().