CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
calibratedPhotonsRun2_cfi.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 correctionType = "80Xapproval"
5 files = {"Prompt2015":"EgammaAnalysis/ElectronTools/data/ScalesSmearings/74X_Prompt_2015",
6  "76XReReco" :"EgammaAnalysis/ElectronTools/data/ScalesSmearings/76X_16DecRereco_2015_Etunc",
7  "80Xapproval" : "EgammaAnalysis/ElectronTools/data/ScalesSmearings/80X_ichepV2_2016_pho"}
8 
9 calibratedPatPhotons = cms.EDProducer("CalibratedPatPhotonProducerRun2",
10 
11  # input collections
12  photons = cms.InputTag('slimmedPhotons'),
13 
14  # data or MC corrections
15  # if isMC is false, data corrections are applied
16  isMC = cms.bool(False),
17 
18  # set to True to get special "fake" smearing for synchronization. Use JUST in case of synchronization
19  isSynchronization = cms.bool(False),
20 
21  correctionFile = cms.string(files[correctionType])
22  )
23 
24 calibratedPhotons = cms.EDProducer("CalibratedPhotonProducerRun2",
25 
26  # input collections
27  photons = cms.InputTag('photons'),
28 
29  # data or MC corrections
30  # if isMC is false, data corrections are applied
31  isMC = cms.bool(False),
32 
33  # set to True to get special "fake" smearing for synchronization. Use JUST in case of synchronization
34  isSynchronization = cms.bool(False),
35 
36  correctionFile = cms.string(files[correctionType])
37  )
38 
39