test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
calibratedElectronsRun2_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 correctionType = "80Xapproval"
4 files = {"Prompt2015":"EgammaAnalysis/ElectronTools/data/ScalesSmearings/74X_Prompt_2015",
5  "76XReReco" :"EgammaAnalysis/ElectronTools/data/ScalesSmearings/76X_16DecRereco_2015_Etunc",
6  "80Xapproval" : "EgammaAnalysis/ElectronTools/data/ScalesSmearings/80X_ichepV1_2016_ele"}
7 
8 calibratedElectrons = cms.EDProducer("CalibratedElectronProducerRun2",
9 
10  # input collections
11  electrons = cms.InputTag('gedGsfElectrons'),
12  gbrForestName = cms.string("gedelectron_p4combination_25ns"),
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 
25 calibratedPatElectrons = cms.EDProducer("CalibratedPatElectronProducerRun2",
26 
27  # input collections
28  electrons = cms.InputTag('slimmedElectrons'),
29  gbrForestName = cms.string("gedelectron_p4combination_25ns"),
30 
31  # data or MC corrections
32  # if isMC is false, data corrections are applied
33  isMC = cms.bool(False),
34 
35  # set to True to get special "fake" smearing for synchronization. Use JUST in case of synchronization
36  isSynchronization = cms.bool(False),
37 
38  correctionFile = cms.string(files[correctionType])
39  )
40 
41