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 721 of file ntuplePrintersDiff.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented in ntuplePrintersDiff._RecHitPrinter.

Definition at line 722 of file ntuplePrintersDiff.py.

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

Member Function Documentation

◆ _indent()

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

Definition at line 726 of file ntuplePrintersDiff.py.

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

References CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, html.PageSet._prefix, ntupleDataFormat.BeamSpot._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 723 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