CMS 3D CMS Logo

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__ (self, indent=0)
 
def indent (self, num)
 
def restoreIndent (self)
 
def setIndentFrom (self, printer, adjust=0)
 

Private Member Functions

def _indent (self, num)
 

Private Attributes

 _backup
 
 _prefix
 

Detailed Description

Definition at line 720 of file ntuplePrintersDiff.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented in ntuplePrintersDiff._RecHitPrinter.

Definition at line 721 of file ntuplePrintersDiff.py.

721  def __init__(self, indent=0):
722  self._prefix = " "*indent
723  self._backup = []
724 

Member Function Documentation

◆ _indent()

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

Definition at line 725 of file ntuplePrintersDiff.py.

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

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

◆ indent()

def ntuplePrintersDiff._IndentPrinter.indent (   self,
  num 
)

◆ restoreIndent()

def ntuplePrintersDiff._IndentPrinter.restoreIndent (   self)

◆ setIndentFrom()

def ntuplePrintersDiff._IndentPrinter.setIndentFrom (   self,
  printer,
  adjust = 0 
)

Member Data Documentation

◆ _backup

ntuplePrintersDiff._IndentPrinter._backup
private

◆ _prefix

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

mps_setup.append
append
Definition: mps_setup.py:85
util.rrClient.indent
indent
Definition: rrClient.py:41