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 = "76XReReco"
4 files = {"Prompt2015":"EgammaAnalysis/ElectronTools/data/74X_Prompt_2015",
5  "76XReReco" :"EgammaAnalysis/ElectronTools/data/76X_16DecRereco_2015"}
6 
7 calibratedElectrons = cms.EDProducer("CalibratedElectronProducerRun2",
8 
9  # input collections
10  electrons = cms.InputTag('gedGsfElectrons'),
11  gbrForestName = cms.string("gedelectron_p4combination_25ns"),
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 
24 calibratedPatElectrons = cms.EDProducer("CalibratedPatElectronProducerRun2",
25 
26  # input collections
27  electrons = cms.InputTag('slimmedElectrons'),
28  gbrForestName = cms.string("gedelectron_p4combination_25ns"),
29 
30  # data or MC corrections
31  # if isMC is false, data corrections are applied
32  isMC = cms.bool(False),
33 
34  # set to True to get special "fake" smearing for synchronization. Use JUST in case of synchronization
35  isSynchronization = cms.bool(False),
36 
37  correctionFile = cms.string(files[correctionType])
38  )
39 
40