712 for key,value
in newParams.items():
716 elif isinstance(value, dict):
717 if isinstance(params[key],_Parameterizable):
719 p =pset.parameters_()
720 oldkeys = set(p.keys())
723 (
"%s.%s" if isinstance(key, str)
else "%s[%s]")%(keyDepth,key))
724 for k,v
in p.items():
729 elif isinstance(params[key],_ValidatingParameterListBase):
730 if any(
not isinstance(k, int)
for k
in value.keys()):
731 raise TypeError(
"Attempted to change a list using a dict whose keys are not integers")
733 if any((k < 0
or k >= len(plist))
for k
in value.keys()):
734 raise IndexError(
"Attempted to set an index which is not in the list")
735 p = dict(enumerate(plist))
738 (
"%s.%s" if isinstance(key, str)
else "%s[%s]")%(keyDepth,key))
739 for k,v
in p.items():
742 raise ValueError(
"Attempted to change non PSet value "+keyDepth+
" using a dictionary")
743 elif isinstance(value,_ParameterTypeBase)
or (isinstance(key, int))
or isinstance(value, _Parameterizable):
748 if isinstance(value,_ParameterTypeBase)
or isinstance(value, _Parameterizable):
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated ...