1 import FWCore.ParameterSet.Config
as cms
5 from EgammaAnalysis.ElectronTools.regressionModifier_cfi
import regressionModifier
7 slimmedElectrons = modifiedElectrons.clone()
8 slimmedPhotons = modifiedPhotons.clone()
10 regressionModifier.ecalrechitsEB = cms.InputTag(
"reducedEgamma:reducedEBRecHits")
11 regressionModifier.ecalrechitsEE = cms.InputTag(
"reducedEgamma:reducedEERecHits")
12 regressionModifier.useLocalFile = cms.bool(
False)
14 egamma_modifications = cms.VPSet( )
15 egamma_modifications.append( regressionModifier )
17 slimmedElectrons.modifierConfig.modifications = egamma_modifications
18 slimmedPhotons.modifierConfig.modifications = egamma_modifications
20 regressionApplication = cms.Sequence( slimmedElectrons * slimmedPhotons )