CMS 3D CMS Logo

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.

00022                                     :
00023     indent += indentDelta
00024     for i in dir(op):
00025         o = getattr(op,i)
00026         if isinstance(o,mod._Module):
00027             print indent+"module: "+o.label_()+" <"+o.type_()+">"            
00028         elif isinstance(o, cms.Sequence):
00029             printPath(o,indent,indentDelta, "seq")
00030         elif isinstance(o,sqt._Sequenceable):
00031             _printOp(o,indent,indentDelta)

def printPaths::printPath (   pth,
  indent = "",
  indentDelta = " ",
  type = "path" 
)

Definition at line 10 of file printPaths.py.

00011                                                            :
00012     item = pth._seq
00013     print indent+type+": "+pth.label_()
00014     indent += indentDelta
00015     if isinstance(item,mod._Module):
00016         print indent+"module: "+item.label_()+" <"+item.type_()+">"
00017     elif isinstance(item,cms.Sequence):
00018         printPath(item,indent,indentDelta,"seq")
00019     else:
00020         _printOp(item,indent,indentDelta)

def printPaths::printPaths (   process)

Definition at line 5 of file printPaths.py.

00006                        :
00007     "print all the paths in the process"
00008     for p  in process.paths.itervalues():
00009         printPath(p)