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

Constructor & Destructor Documentation

◆ __init__()

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

Arguments:
tree -- TTree object

Definition at line 530 of file ntupleDataFormat.py.

530  def __init__(self, tree):
531  """Constructor.
532 
533  Arguments:
534  tree -- TTree object
535  """
536  super(BeamSpot, self).__init__()
537  self._tree = tree
538  self._prefix = "bsp"
539 

Member Function Documentation

◆ __getattr__()

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

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

Definition at line 540 of file ntupleDataFormat.py.

540  def __getattr__(self, attr):
541  """Return object member variable.
542 
543  'attr' is translated as a branch in the TTree (bsp_<attr>).
544  """
545  val = getattr(self._tree, self._prefix+"_"+attr)
546  return lambda: val
547 

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.

Member Data Documentation

◆ _prefix

ntupleDataFormat.BeamSpot._prefix
private

Definition at line 538 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().

◆ _tree

ntupleDataFormat.BeamSpot._tree
private