test
CMS 3D CMS Logo

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