CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
regressionApplication_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 from EgammaAnalysis.ElectronTools.regressionModifier_cfi import regressionModifier
6 
7 slimmedElectrons = modifiedElectrons.clone()
8 slimmedPhotons = modifiedPhotons.clone()
9 
10 regressionModifier.ecalrechitsEB = cms.InputTag("reducedEgamma:reducedEBRecHits")
11 regressionModifier.ecalrechitsEE = cms.InputTag("reducedEgamma:reducedEERecHits")
12 regressionModifier.useLocalFile = cms.bool(False)
13 
14 egamma_modifications = cms.VPSet( )
15 egamma_modifications.append( regressionModifier )
16 
17 slimmedElectrons.modifierConfig.modifications = egamma_modifications
18 slimmedPhotons.modifierConfig.modifications = egamma_modifications
19 
20 regressionApplication = cms.Sequence( slimmedElectrons * slimmedPhotons )