14 for name
in pset.parameterNames_():
15 value = getattr(pset,name)
16 if isinstance(value, cms.PSet):
18 elif isinstance(value, cms.VPSet):
21 elif isinstance(value, cms.VInputTag):
24 if not isinstance(t, cms.InputTag):
26 for i,moduleLabel
in enumerate(moduleLabels):
27 if result[i]:
continue
28 if t2.getModuleLabel() == moduleLabel:
30 elif isinstance(value, cms.InputTag):
31 for i,moduleLabel
in enumerate(moduleLabels):
32 if result[i]:
continue
33 if value.getModuleLabel() == moduleLabel:
35 elif isinstance(value, cms.string)
and name ==
"refToPSet_":
37 ps = getattr(process, value.value())
38 except AttributeError:
39 raise RuntimeError(
"Module %s has a 'PSet(refToPSet_ = cms.string(\"%s\"))', but the referenced-to PSet does not exist in the Process." % (psetModLabel, value.value()))