2 Helper functions to extract the dictionary with
7 either from a dictionary (either a cms.Process.__dict__ or from the locals() inside a _cff.py fragment)
13 if isinstance(holder, cms.Process):
14 return process.filters_()
16 return dict( (name, module)
for name, module
in holder.iteritems()
if isinstance(module, cms.EDFilter) )
20 if isinstance(holder, cms.Process):
21 return process.producers_()
23 return dict( (name, module)
for name, module
in holder.iteritems()
if isinstance(module, cms.EDProducer) )
27 if isinstance(holder, cms.Process):
28 return process.analyzers_()
30 return dict( (name, module)
for name, module
in holder.iteritems()
if isinstance(module, cms.EDAnalyzer) )
34 if isinstance(holder, cms.Process):
36 modules.upate(process.analyzers_())
37 modules.upate(process.producers_())
38 modules.upate(process.filters_())
41 return dict( (name, module)
for name, module
in holder.iteritems()
if isinstance(module, (cms.EDAnalyzer, _cms.EDProducer, _cms.EDFilter)) )