2 import FWCore.ParameterSet.Config
as cms
3 import FWCore.ParameterSet.Modules
as mod
7 "print all the paths in the process" 8 for p
in six.itervalues(process.paths):
11 def printPath(pth, indent="", indentDelta=" ", type="path"):
13 print indent+type+
": "+pth.label_()
15 if isinstance(item,mod._Module):
16 print indent+
"module: "+item.label_()+
" <"+item.type_()+
">" 17 elif isinstance(item,cms.Sequence):
26 if isinstance(o,mod._Module):
27 print indent+
"module: "+o.label_()+
" <"+o.type_()+
">" 28 elif isinstance(o, cms.Sequence):
30 elif isinstance(o,sqt._Sequenceable):
33 if __name__ ==
"__main__":
38 p.foo = cms.EDProducer(
"Foo")
43 p.foo = cms.EDProducer(
"Foo")
44 p.bar = cms.EDProducer(
"Bar")
45 p.p = cms.Path(p.foo*p.bar)
49 p.foo = cms.EDProducer(
"Foo")
50 p.bar = cms.EDProducer(
"Bar")
51 p.s = cms.Sequence(p.foo*p.bar)
52 p.fii = cms.EDProducer(
"Fii")
53 p.p = cms.Path(p.s*p.fii)
def _printOp(op, indent, indentDelta)
def printPath(pth, indent="", indentDelta=" ", type="path")