1 import FWCore.ParameterSet.Config
as cms
2 import FWCore.ParameterSet.Utilities
as psu
6 for path
in process.paths:
7 sequences = getattr(process,path)
9 _replaceTags(sequences,
10 cms.InputTag(
'gedGsfElectrons'),
11 cms.InputTag(
'gsfElectrons'),
13 _replaceTags(sequences,
14 cms.InputTag(
'gedGsfElectronCores'),
15 cms.InputTag(
'gsfElectronCores'),
18 _replaceTags(sequences,
19 cms.InputTag(
'gedPhotons'),
20 cms.InputTag(
'photons'),
22 _replaceTags(sequences,
23 cms.InputTag(
'gedPhotonCore'),
24 cms.InputTag(
'photonCore'),
28 if hasattr(process,
'DigiToRaw'):
30 if hasattr(process,
'RawToDigi'):
32 if hasattr(process,
'reconstruction'):
34 if hasattr(process,
'reconstructionWithFamos'):
36 if hasattr(process,
'digitisation_step'):
38 if hasattr(process,
'HLTSchedule'):
40 if hasattr(process,
'L1simulation_step'):
42 if hasattr(process,
'dqmoffline_step'):
44 if hasattr(process,
'dqmHarvesting'):
46 if hasattr(process,
'validation_step'):
54 process.gedGsfElectronsTmp.gsfElectronCoresTag = cms.InputTag(
'gedGsfElectronCores')
55 process.particleBasedIsolation.electronProducer = cms.InputTag(
"gedGsfElectrons")
56 process.gedPhotonsTmp.photonProducer = cms.InputTag(
'gedPhotonCore')
57 process.particleBasedIsolation.photonProducer = cms.InputTag(
"gedPhotons")
59 process.gedPhotonsTmp.candidateP4type = cms.string(
'fromEcalEnergy')
60 process.gedPhotons.candidateP4type = cms.string(
'fromEcalEnergy')
62 process.gedGsfElectronsTmp.useEcalRegression = cms.bool(
False)
63 process.gedGsfElectronsTmp.useCombinationRegression = cms.bool(
False)
66 process.particleFlowBlock.SCBarrel = cms.InputTag(
'correctedHybridSuperClusters')
67 process.particleFlowBlock.SCEndcap = cms.InputTag(
'correctedMulti5x5SuperClustersWithPreshower')
68 process.particleFlowBlock.SuperClusterMatchByRef = cms.bool(
False)
72 process.allConversionSequence += process.allConversionOldEGSequence
73 process.pfConversions.conversionCollection = cms.InputTag(
'allConversionsOldEG')
74 process.photons.conversionProducer = cms.InputTag(
'oldegConversions')
76 process.ckfTracksFromConversions += process.ckfTracksFromOldEGConversions
77 process.conversionTrackProducers += process.oldegConversionTrackProducers
78 process.conversionTrackMergers += process.oldegConversionTrackMergers
79 if hasattr(process,
'conversionSequence'):
80 process.conversionSequence += process.oldegConversionSequence
81 process.photonSequence.remove(process.mustachePhotonSequence)
82 process.particleFlowBlock.EGPhotons = cms.InputTag(
'photons')
83 process.particleFlowBlock.PhotonSelectionCuts = cms.vdouble(1,10,2.0, 0.001, 4.2, 0.003, 2.2, 0.001, 0.05, 10.0, 0.10)
85 process.particleFlowTmp.useEGammaFilters = cms.bool(
False)
86 process.particleFlowTmp.usePFPhotons = cms.bool(
True)
87 process.particleFlowTmp.usePFElectrons = cms.bool(
True)
88 process.particleFlowTmp.sumPtTrackIso = cms.double(2.0)
89 process.particleFlowTmp.photon_HoE = cms.double(0.10)
92 process.particleFlow.GsfElectrons = cms.InputTag(
'gsfElectrons')
93 process.particleFlow.Photons = cms.InputTag(
'pfPhotonTranslator:pfphot')
100 process.ecalBarrelClusterTask.SuperClusterCollection = cms.InputTag(
"correctedHybridSuperClusters")
101 process.ecalBarrelClusterTask.BasicClusterCollection = cms.InputTag(
"hybridSuperClusters",
"hybridBarrelBasicClusters")
102 process.ecalEndcapClusterTask.SuperClusterCollection = cms.InputTag(
"multi5x5SuperClusters",
"multi5x5EndcapSuperClusters")
103 process.ecalEndcapClusterTask.BasicClusterCollection = cms.InputTag(
"multi5x5SuperClusters",
"multi5x5EndcapBasicClusters")
104 except AttributeError:
107 process.ecalBarrelClusterTaskExtras.SuperClusterCollection = cms.InputTag(
"correctedHybridSuperClusters")
108 process.ecalEndcapClusterTaskExtras.SuperClusterCollection = cms.InputTag(
"multi5x5SuperClusters",
"multi5x5EndcapSuperClusters")
109 except AttributeError:
112 process.ecalBarrelRecoSummary.superClusterCollection_EB = cms.InputTag(
"correctedHybridSuperClusters")
113 process.ecalBarrelRecoSummary.basicClusterCollection_EB = cms.InputTag(
"hybridSuperClusters",
"hybridBarrelBasicClusters")
114 process.ecalEndcapRecoSummary.superClusterCollection_EE = cms.InputTag(
"correctedMulti5x5SuperClustersWithPreshower")
115 process.ecalEndcapRecoSummary.basicClusterCollection_EE = cms.InputTag(
"multi5x5SuperClusters",
"multi5x5EndcapBasicClusters")
116 except AttributeError:
123 _replaceTags(process.validation_step,
124 cms.InputTag(
'gedGsfElectrons'),
125 cms.InputTag(
'gsfElectrons'),
127 _replaceTags(process.validation_step,
128 cms.InputTag(
'gedGsfElectronCores'),
129 cms.InputTag(
'gsfElectronCores'),
132 if hasattr(process,
'HLTSusyExoValFastSim'):
133 process.HLTSusyExoValFastSim.PlotMakerRecoInput.electrons = \
134 cms.string(
'gsfElectrons')
135 for pset
in process.HLTSusyExoValFastSim.reco_parametersets:
136 pset.electrons = cms.string(
'gsfElectrons')
137 if hasattr(process,
'HLTSusyExoVal'):
138 process.HLTSusyExoVal.PlotMakerRecoInput.electrons = \
139 cms.string(
'gsfElectrons')
140 for pset
in process.HLTSusyExoVal.reco_parametersets:
141 pset.electrons = cms.string(
'gsfElectrons')
142 if hasattr(process,
'hltHiggsValidator'):
143 process.hltHiggsValidator.H2tau.recElecLabel = \
144 cms.string(
'gsfElectrons')
145 process.hltHiggsValidator.HZZ.recElecLabel = \
146 cms.string(
'gsfElectrons')
147 process.hltHiggsValidator.HWW.recElecLabel = \
148 cms.string(
'gsfElectrons')
149 if hasattr(process,
'oldpfPhotonValidation'):
150 process.photonValidationSequence += process.oldpfPhotonValidation
151 process.oldpfPhotonValidation.conversionIOTrackProducer = cms.string(
'ckfInOutTracksFromOldEGConversions')
152 process.oldpfPhotonValidation.conversionOITrackProducer = cms.string(
'ckfOutInTracksFromOldEGConversions')
153 process.photonValidation.phoProducer = cms.string(
'photons')
154 process.photonValidation.conversionIOTrackProducer = cms.string(
'ckfInOutTracksFromOldEGConversions')
155 process.photonValidation.conversionOITrackProducer = cms.string(
'ckfOutInTracksFromOldEGConversions')
156 process.tkConversionValidation.convProducer = cms.string(
'allConversionsOldEG')
181 process.egammaHighLevelRecoPostPF.insert(0,process.gsfElectronMergingSequence)
182 process.famosParticleFlowSequence.insert(8,process.pfPhotonTranslatorSequence)
183 process.famosParticleFlowSequence.insert(8,process.pfElectronTranslatorSequence)
185 process.reducedEcalRecHitsES.interestingDetIds = cms.VInputTag()
186 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdPFEB)
187 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdPFEE)
188 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdPFES)
189 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdRefinedEB)
190 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdRefinedEE)
191 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdRefinedES)
193 process.interestingGedEleIsoDetIdEB.emObjectLabel = cms.InputTag(
'gsfElectrons')
194 process.interestingGedEleIsoDetIdEE.emObjectLabel = cms.InputTag(
'gsfElectrons')
195 process.interestingEgammaIsoDetIds.remove(process.interestingGedGamIsoDetIdEB)
196 process.interestingEgammaIsoDetIds.remove(process.interestingGedGamIsoDetIdEE)
198 process.reducedEcalRecHitsEB.interestingDetIdCollections = cms.VInputTag(
200 cms.InputTag(
"interestingEcalDetIdEB"),
201 cms.InputTag(
"interestingEcalDetIdEBU"),
203 cms.InputTag(
"interestingGedEleIsoDetIdEB"),
204 cms.InputTag(
"interestingGamIsoDetIdEB"),
208 cms.InputTag(
"pfElectronInterestingEcalDetIdEB"),
209 cms.InputTag(
"pfPhotonInterestingEcalDetIdEB"),
211 cms.InputTag(
"muonEcalDetIds"),
213 cms.InputTag(
"interestingTrackEcalDetIds")
215 process.reducedEcalRecHitsEE.interestingDetIdCollections = cms.VInputTag(
217 cms.InputTag(
"interestingEcalDetIdEE"),
219 cms.InputTag(
"interestingGedEleIsoDetIdEE"),
220 cms.InputTag(
"interestingGamIsoDetIdEE"),
224 cms.InputTag(
"pfElectronInterestingEcalDetIdEE"),
225 cms.InputTag(
"pfPhotonInterestingEcalDetIdEE"),
227 cms.InputTag(
"muonEcalDetIds"),
229 cms.InputTag(
"interestingTrackEcalDetIds")
231 process.allConversionsOldEG.src = cms.InputTag(
'gsfGeneralConversionTrackMerger')
233 if hasattr(process,
'ecalDrivenElectronSeeds'):
234 process.ecalDrivenElectronSeeds.barrelSuperClusters = cms.InputTag(
'correctedHybridSuperClusters')
235 process.ecalDrivenElectronSeeds.endcapSuperClusters = cms.InputTag(
'correctedMulti5x5SuperClustersWithPreshower')
236 process.ecalDrivenElectronSeeds.SeedConfiguration.ecalDrivenElectronSeedsParameters.SCEtCut = 4.0
242 process.egammaHighLevelRecoPostPF.insert(0,process.gsfElectronMergingSequence)
243 process.particleFlowReco.insert(8,process.pfPhotonTranslatorSequence)
244 process.particleFlowReco.insert(8,process.pfElectronTranslatorSequence)
246 process.reducedEcalRecHitsES.interestingDetIds = cms.VInputTag()
247 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdPFEB)
248 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdPFEE)
249 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdPFES)
250 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdRefinedEB)
251 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdRefinedEE)
252 process.reducedEcalRecHitsSequence.remove(process.interestingEcalDetIdRefinedES)
254 process.interestingGedEleIsoDetIdEB.emObjectLabel = cms.InputTag(
'gsfElectrons')
255 process.interestingGedEleIsoDetIdEE.emObjectLabel = cms.InputTag(
'gsfElectrons')
256 process.interestingEgammaIsoDetIds.remove(process.interestingGedGamIsoDetIdEB)
257 process.interestingEgammaIsoDetIds.remove(process.interestingGedGamIsoDetIdEE)
259 process.reducedEcalRecHitsEB.interestingDetIdCollections = cms.VInputTag(
261 cms.InputTag(
"interestingEcalDetIdEB"),
262 cms.InputTag(
"interestingEcalDetIdEBU"),
264 cms.InputTag(
"interestingGedEleIsoDetIdEB"),
265 cms.InputTag(
"interestingGamIsoDetIdEB"),
269 cms.InputTag(
"pfElectronInterestingEcalDetIdEB"),
270 cms.InputTag(
"pfPhotonInterestingEcalDetIdEB"),
272 cms.InputTag(
"muonEcalDetIds"),
274 cms.InputTag(
"interestingTrackEcalDetIds")
276 process.reducedEcalRecHitsEE.interestingDetIdCollections = cms.VInputTag(
278 cms.InputTag(
"interestingEcalDetIdEE"),
280 cms.InputTag(
"interestingGedEleIsoDetIdEE"),
281 cms.InputTag(
"interestingGamIsoDetIdEE"),
285 cms.InputTag(
"pfElectronInterestingEcalDetIdEE"),
286 cms.InputTag(
"pfPhotonInterestingEcalDetIdEE"),
288 cms.InputTag(
"muonEcalDetIds"),
290 cms.InputTag(
"interestingTrackEcalDetIds")
293 if hasattr(process,
'ecalDrivenElectronSeeds'):
294 process.ecalDrivenElectronSeeds.barrelSuperClusters = cms.InputTag(
'correctedHybridSuperClusters')
295 process.ecalDrivenElectronSeeds.endcapSuperClusters = cms.InputTag(
'correctedMulti5x5SuperClustersWithPreshower')
300 if hasattr(process,
'oldpfPhotonPostprocessing'):
301 process.photonPostProcessor += process.oldpfPhotonPostprocessing
def _customize_Digi(process)
def _configurePFForGEDEGamma(process)
def _customize_DigiToRaw(process)
def _customize_RawToDigi(process)
def _customize_harvesting(process)
def _customize_DQM(process)
def _customize_Validation(process)
def _customize_HLT(process)
def customizeOldEGReco(process)
def _customize_L1Emulator(process)
def _customize_FastSim(process)
def _customize_Reco(process)