CMS 3D CMS Logo

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