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

References dir, edm.print(), and printPath().

Referenced by printPath().

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

Definition at line 12 of file printPaths.py.

References _printOp(), and edm.print().

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

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

Definition at line 7 of file printPaths.py.

References printPath().

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