1 from __future__
import print_function
3 import FWCore.ParameterSet.Config
as cms
4 import FWCore.ParameterSet.Modules
as mod
8 "print all the paths in the process" 9 for p
in six.itervalues(process.paths):
12 def printPath(pth, indent="", indentDelta=" ", type="path"):
14 print(indent+type+
": "+pth.label_())
16 if isinstance(item,mod._Module):
17 print(indent+
"module: "+item.label_()+
" <"+item.type_()+
">")
18 elif isinstance(item,cms.Sequence):
27 if isinstance(o,mod._Module):
28 print(indent+
"module: "+o.label_()+
" <"+o.type_()+
">")
29 elif isinstance(o, cms.Sequence):
31 elif isinstance(o,sqt._Sequenceable):
34 if __name__ ==
"__main__":
39 p.foo = cms.EDProducer(
"Foo")
44 p.foo = cms.EDProducer(
"Foo")
45 p.bar = cms.EDProducer(
"Bar")
46 p.p = cms.Path(p.foo*p.bar)
50 p.foo = cms.EDProducer(
"Foo")
51 p.bar = cms.EDProducer(
"Bar")
52 p.s = cms.Sequence(p.foo*p.bar)
53 p.fii = cms.EDProducer(
"Fii")
54 p.p = cms.Path(p.s*p.fii)
def _printOp(op, indent, indentDelta)
S & print(S &os, JobReport::InputFile const &f)
def printPath(pth, indent="", indentDelta=" ", type="path")