CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 22 of file printPaths.py.

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

Referenced by printPath().

22 
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)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def printPath
Definition: printPaths.py:11
def _printOp
Definition: printPaths.py:22
def printPaths.printPath (   pth,
  indent = "",
  indentDelta = " ",
  type = "path" 
)

Definition at line 11 of file printPaths.py.

References _printOp(), and print().

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

11 
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)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def printPath
Definition: printPaths.py:11
def _printOp
Definition: printPaths.py:22
def printPaths.printPaths (   process)

Definition at line 6 of file printPaths.py.

References printPath().

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