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

Constructor & Destructor Documentation

◆ __init__()

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

Arguments:
tree -- TTree object

Definition at line 529 of file ntupleDataFormat.py.

529  def __init__(self, tree):
530  """Constructor.
531 
532  Arguments:
533  tree -- TTree object
534  """
535  super(BeamSpot, self).__init__()
536  self._tree = tree
537  self._prefix = "bsp"
538 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

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

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

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

Member Data Documentation

◆ _prefix

ntupleDataFormat.BeamSpot._prefix
private

Definition at line 537 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