CMS 3D CMS Logo

Classes | Functions
printPaths Namespace Reference

Classes

class  TestPrintPath
 

Functions

def _printOp (op, indent, indentDelta)
 
def printPath (pth, indent="", indentDelta=" ", type="path")
 
def printPaths (process)
 

Function Documentation

def printPaths._printOp (   op,
  indent,
  indentDelta 
)
private

Definition at line 21 of file printPaths.py.

References dir, and printPath().

Referenced by printPath().

21 def _printOp(op,indent, indentDelta):
22  indent += indentDelta
23  for i in dir(op):
24  o = getattr(op,i)
25  if isinstance(o,mod._Module):
26  print indent+"module: "+o.label_()+" <"+o.type_()+">"
27  elif isinstance(o, cms.Sequence):
28  printPath(o,indent,indentDelta, "seq")
29  elif isinstance(o,sqt._Sequenceable):
30  _printOp(o,indent,indentDelta)
31 
def _printOp(op, indent, indentDelta)
Definition: printPaths.py:21
def printPath(pth, indent="", indentDelta=" ", type="path")
Definition: printPaths.py:10
dbl *** dir
Definition: mlp_gen.cc:35
def printPaths.printPath (   pth,
  indent = "",
  indentDelta = " ",
  type = "path" 
)

Definition at line 10 of file printPaths.py.

References _printOp().

Referenced by _printOp(), printPaths(), and printPaths.TestPrintPath.testPrint().

10 def printPath(pth, indent="", indentDelta=" ", type="path"):
11  item = pth._seq
12  print indent+type+": "+pth.label_()
13  indent += indentDelta
14  if isinstance(item,mod._Module):
15  print indent+"module: "+item.label_()+" <"+item.type_()+">"
16  elif isinstance(item,cms.Sequence):
17  printPath(item,indent,indentDelta,"seq")
18  else:
19  _printOp(item,indent,indentDelta)
20 
def _printOp(op, indent, indentDelta)
Definition: printPaths.py:21
def printPath(pth, indent="", indentDelta=" ", type="path")
Definition: printPaths.py:10
def printPaths.printPaths (   process)

Definition at line 5 of file printPaths.py.

References printPath().

5 def printPaths(process):
6  "print all the paths in the process"
7  for p in process.paths.itervalues():
8  printPath(p)
9 
def printPath(pth, indent="", indentDelta=" ", type="path")
Definition: printPaths.py:10
def printPaths(process)
Definition: printPaths.py:5