CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
calibratedElectrons_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 calibratedElectrons = cms.EDProducer("CalibratedElectronProducer",
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  # The rechits are needed to compute r9
17  recHitCollectionEB = cms.InputTag('reducedEcalRecHitsEB'),
18  recHitCollectionEE = cms.InputTag('reducedEcalRecHitsEE'),
19 
20  outputGsfElectronCollectionLabel = cms.string('calibratedGsfElectrons'),
21  # For conveniency the ValueMaps are re-created with the new collection as key. The label of the ValueMap are defined below
22  nameNewEnergyReg = cms.string('eneRegForGsfEle'),
23  nameNewEnergyErrorReg = cms.string('eneErrorRegForGsfEle'),
24 
25  # data or MC corrections
26  # if isMC is false, data corrections are applied
27  isMC = cms.bool(False),
28 
29  # set to True to get more printout
30  verbose = cms.bool(False),
31 
32  # set to True to get special "fake" smearing for synchronization. Use JUST in case of synchronization
33  synchronization = cms.bool(False),
34 
35  updateEnergyError = cms.bool(True),
36 
37  # define the type of the scale corrections
38  # described in details here:
39  # https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_resolu
40  correctionsType = cms.int32(2),
41  # Apply or not the linearity correction on data
42  # Can only be applied with combinationType = 3
43  applyLinearityCorrection = cms.bool(True),
44  # define the type of the E-p combination
45  # described in details here:
46  # https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_resolu
47  combinationType = cms.int32(3),
48 
49  # this variable is used only for Moriond 2013 analysis with old regression
50  # see https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_re_AN1
51  # for the meaning
52  lumiRatio = cms.double(0.0),
53 
54  # input datasets
55  # Prompt means May10+Promptv4+Aug05+Promptv6 for 2011
56  # ReReco means Jul05+Aug05+Oct03 for 2011
57  # Jan16ReReco means Jan16 for 2011
58  # Summer11 means summer11 MC
59  # etc.
60  inputDataset = cms.string("22Jan2013ReReco"),
61 
62  # input pathes should be set accordingly to the combinationType and regressionType
63  combinationRegressionInputPath = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_WithSubClusters_VApr15.root"),
64  scaleCorrectionsInputPath = cms.string("EgammaAnalysis/ElectronTools/data/scalesNewReg-May2013.csv"),
65  linearityCorrectionsInputPath = cms.string("EgammaAnalysis/ElectronTools/data/linearityNewReg-May2013.csv")
66 )
67 
68