12 for name
in pset.parameterNames_():
13 value = getattr(pset,name)
14 if isinstance(value, cms.PSet):
16 elif isinstance(value, cms.VPSet):
19 elif isinstance(value, cms.VInputTag):
22 if not isinstance(t, cms.InputTag):
24 for i,moduleLabel
in enumerate(moduleLabels):
25 if result[i]:
continue
26 if t2.getModuleLabel() == moduleLabel:
28 elif isinstance(value, cms.InputTag):
29 for i,moduleLabel
in enumerate(moduleLabels):
30 if result[i]:
continue
31 if value.getModuleLabel() == moduleLabel:
33 elif isinstance(value, cms.string)
and name ==
"refToPSet_":
35 ps = getattr(process, value.value())
36 except AttributeError:
37 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()))