2 import FWCore.ParameterSet.Config
as cms
3 import FWCore.ParameterSet.Modules
as mod
6 "print all the paths in the process"
7 for p
in process.paths.itervalues():
10 def printPath(pth, indent="", indentDelta=" ", type="path"):
12 print indent+type+
": "+pth.label_()
14 if isinstance(item,mod._Module):
15 print indent+
"module: "+item.label_()+
" <"+item.type_()+
">"
16 elif isinstance(item,cms.Sequence):
25 if isinstance(o,mod._Module):
26 print indent+
"module: "+o.label_()+
" <"+o.type_()+
">"
27 elif isinstance(o, cms.Sequence):
29 elif isinstance(o,sqt._Sequenceable):
32 if __name__ ==
"__main__":
37 p.foo = cms.EDProducer(
"Foo")
42 p.foo = cms.EDProducer(
"Foo")
43 p.bar = cms.EDProducer(
"Bar")
44 p.p = cms.Path(p.foo*p.bar)
48 p.foo = cms.EDProducer(
"Foo")
49 p.bar = cms.EDProducer(
"Bar")
50 p.s = cms.Sequence(p.foo*p.bar)
51 p.fii = cms.EDProducer(
"Fii")
52 p.p = cms.Path(p.s*p.fii)