CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
calibratedPatElectrons_cfi.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 
5 #==============================================================================
6 # corrected pat electrons
7 #==============================================================================
8 
9 calibratedPatElectrons = cms.EDProducer("CalibratedPatElectronProducer",
10 
11  # input collections
12  inputPatElectronsTag = cms.InputTag("eleRegressionEnergy"),
13  #inputPatElectronsTag = cms.InputTag("cleanPatElectrons"),
14 
15  # data or MC corrections
16  # if isMC is false, data corrections are applied
17  isMC = cms.bool(False),
18 
19  # set to True to get more printout
20  verbose = cms.bool(False),
21 
22  # set to True to get special "fake" smearing for synchronization. Use JUST in case of synchronization
23  synchronization = cms.bool(False),
24 
25  updateEnergyError = cms.bool(True),
26 
27  # define the type of the scale corrections
28  # described in details here:
29  # https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_resolu
30  correctionsType = cms.int32(2),
31  # Apply or not the linearity correction on data
32  # Can only be applied with combinationType = 3
33  applyLinearityCorrection = cms.bool(True),
34  # define the type of the E-p combination
35  # described in details here:
36  # https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_resolu
37  combinationType = cms.int32(3),
38 
39  # this variable is used only for Moriond 2013 analysis with old regression
40  # see https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_re_AN1
41  # for the meaning
42  lumiRatio = cms.double(0.0),
43 
44  # input datasets
45  # Prompt means May10+Promptv4+Aug05+Promptv6 for 2011
46  # ReReco means Jul05+Aug05+Oct03 for 2011
47  # Jan16ReReco means Jan16 for 2011
48  # Summer11 means summer11 MC
49  # etc.
50  inputDataset = cms.string("22Jan2013ReReco"),
51 
52  # input pathes should be set accordingly to the combinationType and regressionType
53  combinationRegressionInputPath = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_WithSubClusters_VApr15.root"),
54  scaleCorrectionsInputPath = cms.string("EgammaAnalysis/ElectronTools/data/scalesNewReg-May2013.csv"),
55  linearityCorrectionsInputPath = cms.string("EgammaAnalysis/ElectronTools/data/linearityNewReg-May2013.csv")
56 )
57 
58