CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ntupleDataFormat.BeamSpot Class Reference
Inheritance diagram for ntupleDataFormat.BeamSpot:

Public Member Functions

def __getattr__ (self, attr)
 
def __init__ (self, tree)
 

Private Attributes

 _prefix
 
 _tree
 

Detailed Description

Class representing the beam spot.

Definition at line 498 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

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

Arguments:
tree -- TTree object

Definition at line 500 of file ntupleDataFormat.py.

500  def __init__(self, tree):
501  """Constructor.
502 
503  Arguments:
504  tree -- TTree object
505  """
506  super(BeamSpot, self).__init__()
507  self._tree = tree
508  self._prefix = "bsp"
509 

Member Function Documentation

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

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

Definition at line 510 of file ntupleDataFormat.py.

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

510  def __getattr__(self, attr):
511  """Return object member variable.
512 
513  'attr' is translated as a branch in the TTree (bsp_<attr>).
514  """
515  val = getattr(self._tree, self._prefix+"_"+attr)
516  return lambda: val
517 

Member Data Documentation

ntupleDataFormat.BeamSpot._prefix
private

Definition at line 508 of file ntupleDataFormat.py.

Referenced by ntupleDataFormat.BeamSpot.__getattr__(), ntuplePrintersDiff._IndentPrinter._indent(), ntupleDataFormat._SimHitMatchAdaptor._nMatchedSimHits(), ntupleDataFormat._TrackingParticleMatchAdaptor._nMatchedTrackingParticles(), ntuplePrintersDiff._RecHitPrinter._printHits(), ntuplePrintersDiff.TrackingParticlePrinter._printMatchedSeeds0(), ntuplePrintersDiff.TrackingParticlePrinter._printMatchedSeedsHeader(), ntuplePrintersDiff.TrackingParticlePrinter._printMatchedTracks(), ntuplePrintersDiff.TrackingParticlePrinter._printMatchedTracksHeader(), ntuplePrintersDiff.TrackingParticlePrinter._printTP(), ntupleDataFormat._DetIdStrAdaptor.detIdStr(), ntuplePrintersDiff.SeedPrinter.diff(), ntuplePrintersDiff.TrackPrinter.diff(), ntuplePrintersDiff._IndentPrinter.indent(), ntupleDataFormat._DetIdStrAdaptor.layerStr(), ntupleDataFormat._SimHitMatchAdaptor.matchedSimHitInfos(), ntupleDataFormat._TrackingParticleMatchAdaptor.matchedTrackingParticleInfos(), ntuplePrintersDiff.SeedPrinter.printHeader(), ntuplePrintersDiff.TrackPrinter.printHeader(), ntuplePrintersDiff.SeedPrinter.printHits(), ntuplePrintersDiff.TrackPrinter.printHits(), ntuplePrintersDiff.TrackingParticlePrinter.printHits(), ntuplePrintersDiff.SeedPrinter.printMatchedTrackingParticles(), ntuplePrintersDiff.TrackPrinter.printMatchedTrackingParticles(), ntuplePrintersDiff.TrackingParticlePrinter.printMatchedTracks(), ntuplePrintersDiff.TrackingParticlePrinter.printTrackingParticle(), ntuplePrintersDiff._IndentPrinter.restoreIndent(), and ntuplePrintersDiff._IndentPrinter.setIndentFrom().

ntupleDataFormat.BeamSpot._tree
private