8 for key
in d.iterkeys() :
9 if isinstance(d[key], cms.PSet) :
11 elif type(d[key])
is DictType :
13 elif type(d[key])
is StringType :
14 pset[key] = cms.untracked.string(d[key])
15 elif type(d[key])
is IntType :
16 pset[key] = cms.untracked.int32(d[key])
17 elif type(d[key])
is FloatType :
18 pset[key] = cms.untracked.double(d[key])
19 elif type(d[key])
is BooleanType :
20 pset[key] = cms.untracked.bool(d[key])
21 elif type(d[key])
is ListType :
22 if type(d[key][0])
is StringType :
23 pset[key] = cms.untracked.vstring(*(d[key]))
24 elif type(d[key][0])
is IntType :
25 pset[key] = cms.untracked.vint32(*(d[key]))
26 elif type(d[key][0])
is FloatType :
27 pset[key] = cms.untracked.vdouble(*(d[key]))
29 return cms.untracked.PSet(**pset)