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.BeamSpot Class Reference
Inheritance diagram for ntuple.BeamSpot:

Public Member Functions

def __getattr__
 
def __init__
 

Private Attributes

 _prefix
 
 _tree
 

Detailed Description

Class representing the beam spot.

Definition at line 383 of file ntuple.py.

Constructor & Destructor Documentation

def ntuple.BeamSpot.__init__ (   self,
  tree 
)
Constructor.

Arguments:
tree -- TTree object

Definition at line 385 of file ntuple.py.

386  def __init__(self, tree):
387  """Constructor.
388 
389  Arguments:
390  tree -- TTree object
391  """
392  super(BeamSpot, self).__init__()
393  self._tree = tree
394  self._prefix = "bsp"

Member Function Documentation

def ntuple.BeamSpot.__getattr__ (   self,
  attr 
)
Return object member variable.

'attr' is translated as a branch in the TTree (bsp_<attr>).

Definition at line 395 of file ntuple.py.

References CommonAnalyzer._prefix, ntuple._Object._prefix, ntuple.BeamSpot._prefix, html.PageSet._prefix, ntuple._Collection._tree, python.cmstools.EventTree._tree, ntuple._Object._tree, ntuple.TrackingNtuple._tree, ntuple.Event._tree, and ntuple.BeamSpot._tree.

396  def __getattr__(self, attr):
397  """Return object member variable.
398 
399  'attr' is translated as a branch in the TTree (bsp_<attr>).
400  """
401  return lambda: getattr(self._tree, self._prefix+"_"+attr)
def __getattr__
Definition: ntuple.py:395

Member Data Documentation

ntuple.BeamSpot._prefix
private

Definition at line 393 of file ntuple.py.

Referenced by ntuple.BeamSpot.__getattr__(), ntuple._TrackingParticleMatchAdaptor._nMatchedTrackingParticles(), ntuple._LayerStrAdaptor.layerStr(), and ntuple._TrackingParticleMatchAdaptor.matchedTrackingParticleInfos().

ntuple.BeamSpot._tree
private

Definition at line 392 of file ntuple.py.

Referenced by ntuple.BeamSpot.__getattr__(), ntuple._TrackingParticleMatchAdaptor._nMatchedTrackingParticles(), ntuple._RecoHitAdaptor.gluedHits(), ntuple._RecoHitAdaptor.hits(), ntuple._RecoHitAdaptor.invalidHits(), ntuple._LayerStrAdaptor.layerStr(), ntuple._TrackingParticleMatchAdaptor.matchedTrackingParticleInfos(), ntuple._RecoHitAdaptor.pixelHits(), ntuple._SimHitAdaptor.simHits(), and ntuple._RecoHitAdaptor.stripHits().