CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
printPaths Namespace Reference

Classes

class  TestPrintPath
 

Functions

def _printOp
 
def printPath
 
def printPaths
 

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 
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)
def printPath
Definition: printPaths.py:10
def _printOp
Definition: printPaths.py:21
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 
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)
def printPath
Definition: printPaths.py:10
def _printOp
Definition: printPaths.py:21
def printPaths.printPaths (   process)

Definition at line 5 of file printPaths.py.

References printPath().

5 
6 def printPaths(process):
7  "print all the paths in the process"
8  for p in process.paths.itervalues():
9  printPath(p)
def printPath
Definition: printPaths.py:10
def printPaths
Definition: printPaths.py:5