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 22 of file printPaths.py.

References dir, and printPath().

Referenced by printPath().

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

Definition at line 11 of file printPaths.py.

References _printOp().

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

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

Definition at line 6 of file printPaths.py.

References printPath().

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