CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ntuplePrintersDiff._IndentPrinter Class Reference
Inheritance diagram for ntuplePrintersDiff._IndentPrinter:
ntuplePrintersDiff._RecHitPrinter ntuplePrintersDiff.TrackingParticlePrinter ntuplePrintersDiff.SeedPrinter ntuplePrintersDiff.TrackPrinter

Public Member Functions

def __init__
 
def indent
 
def restoreIndent
 
def setIndentFrom
 

Private Member Functions

def _indent
 

Private Attributes

 _backup
 
 _prefix
 

Detailed Description

Definition at line 720 of file ntuplePrintersDiff.py.

Constructor & Destructor Documentation

def ntuplePrintersDiff._IndentPrinter.__init__ (   self,
  indent = 0 
)

Member Function Documentation

def ntuplePrintersDiff._IndentPrinter._indent (   self,
  num 
)
private

Definition at line 725 of file ntuplePrintersDiff.py.

References CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, ntupleDataFormat.BeamSpot._prefix, html.PageSet._prefix, and ntuplePrintersDiff._IndentPrinter._prefix.

Referenced by ntuplePrintersDiff._IndentPrinter.indent(), and ntuplePrintersDiff._IndentPrinter.setIndentFrom().

726  def _indent(self, num):
727  if num > 0:
728  self._prefix += " "*num
729  elif num < 0:
730  self._prefix = self._prefix[:num]
def ntuplePrintersDiff._IndentPrinter.indent (   self,
  num 
)

Definition at line 731 of file ntuplePrintersDiff.py.

References ntuplePrintersDiff._IndentPrinter._indent(), CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, ntupleDataFormat.BeamSpot._prefix, html.PageSet._prefix, and ntuplePrintersDiff._IndentPrinter._prefix.

Referenced by ntuplePrintersDiff.TrackingParticlePrinter._parentageChain(), ntuplePrintersDiff.SeedPrinter.printHits(), ntuplePrintersDiff.TrackPrinter.printHits(), and ntuplePrintersDiff.TrackingParticlePrinter.printTrackingParticle().

732  def indent(self, num):
733  self._backup.append(self._prefix)
734  self._indent(num)
def ntuplePrintersDiff._IndentPrinter.restoreIndent (   self)

Definition at line 740 of file ntuplePrintersDiff.py.

References CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, ntupleDataFormat.BeamSpot._prefix, html.PageSet._prefix, and ntuplePrintersDiff._IndentPrinter._prefix.

Referenced by ntuplePrintersDiff.SeedPrinter.printHits(), and ntuplePrintersDiff.TrackPrinter.printHits().

741  def restoreIndent(self):
742  self._prefix = self._backup.pop()
def ntuplePrintersDiff._IndentPrinter.setIndentFrom (   self,
  printer,
  adjust = 0 
)

Definition at line 735 of file ntuplePrintersDiff.py.

References ntuplePrintersDiff._IndentPrinter._indent(), CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, ntupleDataFormat.BeamSpot._prefix, html.PageSet._prefix, and ntuplePrintersDiff._IndentPrinter._prefix.

736  def setIndentFrom(self, printer, adjust=0):
737  self._backup.append(self._prefix)
738  self._prefix = printer._prefix
739  self._indent(adjust)

Member Data Documentation

ntuplePrintersDiff._IndentPrinter._backup
private

Definition at line 723 of file ntuplePrintersDiff.py.

ntuplePrintersDiff._IndentPrinter._prefix
private

Definition at line 722 of file ntuplePrintersDiff.py.

Referenced by 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().