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

◆ _printOp()

def printPaths._printOp (   op,
  indent,
  indentDelta 
)
private

Definition at line 22 of file printPaths.py.

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 

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

Referenced by printPath().

◆ printPath()

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

Definition at line 11 of file printPaths.py.

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 

References _printOp(), and print().

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

◆ printPaths()

def printPaths.printPaths (   process)

Definition at line 6 of file printPaths.py.

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

References printPath().

printPaths.printPath
def printPath(pth, indent="", indentDelta=" ", type="path")
Definition: printPaths.py:11
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
printPaths.printPaths
def printPaths(process)
Definition: printPaths.py:6
printPaths._printOp
def _printOp(op, indent, indentDelta)
Definition: printPaths.py:22
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23