1 import FWCore.ParameterSet.Config
as cms
5 if tag.getModuleLabel()
in names_dict:
7 tag.setModuleLabel(names_dict[tag.getModuleLabel()])
10 new_names=[names_dict[key]
for key
in names_dict]
11 if tag.getModuleLabel()
in new_names
and tag.getProcessName()!=
"@skipCurrentProcess":
16 for paraname
in pset.parameterNames_():
17 para = pset.getParameter(paraname)
18 if para.pythonTypeName()==
"cms.PSet":
20 elif para.pythonTypeName()==
"cms.VPSet":
23 elif para.pythonTypeName()==
"cms.InputTag":
25 print "WARNING: {0}.{1} : {2} does not properly ignore the current process".
format(modname,paraname,para.getModuleLabel())
28 elif para.pythonTypeName()==
"cms.VInputTag":
31 print "WARNING: {0}.{1} does not properly ignore the current process".
format(modname,paraname,tag.getModuleLabel())
32 if tag.getModuleLabel()
in names_dict:
36 for org_name
in names_dict.keys():
37 seq.replace(getattr(process,org_name),getattr(process,names_dict[org_name]))
42 process.load(
"RecoEgamma.EgammaTools.egammaGainSwitchFix_cff")
43 names_dict = {
"ecalMultiAndGSGlobalRecHitEB" :
"reducedEcalRecHitsEB" + newNameSuffex,
44 "particleFlowRecHitECALGSFixed" :
"particleFlowRecHitECAL" + newNameSuffex,
45 "particleFlowRecHitPSGSFixed" :
"particleFlowRecHitPS" + newNameSuffex,
46 "particleFlowClusterPSGSFixed" :
"particleFlowClusterPS" + newNameSuffex,
47 "particleFlowClusterECALUncorrectedGSFixed" :
"particleFlowClusterECALUncorrected" + newNameSuffex,
48 "particleFlowClusterECALGSFixed" :
"particleFlowClusterECAL" + newNameSuffex,
49 "particleFlowSuperClusterECALGSFixed" :
"particleFlowSuperClusterECAL" + newNameSuffex,
50 "gsFixedRefinedSuperClusters" :
"particleFlowEGamma" + newNameSuffex,
51 "gsFixedGsfElectronCores" :
"gedGsfElectronCores" + newNameSuffex,
52 "gsFixedGsfElectrons" :
"gedGsfElectrons" + newNameSuffex,
53 "gsFixedGedPhotonCores" :
"gedPhotonCore" + newNameSuffex,
54 "gsFixedGedPhotons" :
"gedPhotons" + newNameSuffex}
59 for org_name
in names_dict.keys():
60 setattr(process,names_dict[org_name],getattr(process,org_name).
clone())
63 for seqname
in process.sequences:
64 seq = getattr(process,seqname)
69 for pathname
in process.pathNames() :
71 path = getattr(process,pathname)
72 for modulename
in path.moduleNames():
73 if modulename
not in mods_done:
74 mod = getattr(process,modulename)
76 mods_done.append(modulename)
77 except AttributeError:
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)