Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:17

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 import RecoEgamma.EgammaTools.calibratedPatElectronProducer_cfi as _mod
0004 
0005 #==============================================================================
0006 # corrected pat electrons
0007 #==============================================================================
0008 
0009 calibratedPatElectrons = _mod.calibratedPatElectronProducer.clone(
0010 
0011     # input collections
0012     inputPatElectronsTag = cms.InputTag("eleRegressionEnergy"),
0013     #inputPatElectronsTag = cms.InputTag("cleanPatElectrons"),
0014 
0015     # data or MC corrections
0016     # if isMC is false, data corrections are applied
0017     isMC = cms.bool(False),
0018 
0019     # set to True to get more printout   
0020     verbose = cms.bool(False),
0021 
0022     # set to True to get special "fake" smearing for synchronization. Use JUST in case of synchronization
0023     synchronization = cms.bool(False),
0024  
0025     updateEnergyError = cms.bool(True),
0026 
0027     # define the type of the scale corrections 
0028     # described in details here: 
0029     # https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_resolu
0030     correctionsType = cms.int32(2),
0031     # Apply or not the linearity correction on data
0032     # Can only be applied with combinationType = 3
0033     applyLinearityCorrection = cms.bool(True),
0034     # define the type of the E-p combination 
0035     # described in details here: 
0036     # https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_resolu
0037     combinationType = cms.int32(3),
0038     
0039     # this variable is used only for Moriond 2013 analysis with old regression
0040     # see https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_re_AN1
0041     # for the meaning
0042     lumiRatio = cms.double(0.0),
0043    
0044     # input datasets
0045     # Prompt means May10+Promptv4+Aug05+Promptv6 for 2011
0046     # ReReco means Jul05+Aug05+Oct03 for 2011
0047     # Jan16ReReco means Jan16 for 2011
0048     # Summer11 means summer11 MC
0049     # etc.
0050     inputDataset = cms.string("22Jan2013ReReco"),
0051     
0052     # input pathes should be set accordingly to the combinationType and regressionType
0053     combinationRegressionInputPath = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_WithSubClusters_VApr15.root"),
0054     scaleCorrectionsInputPath = cms.string("EgammaAnalysis/ElectronTools/data/scalesNewReg-May2013.csv"),
0055     linearityCorrectionsInputPath = cms.string("EgammaAnalysis/ElectronTools/data/linearityNewReg-May2013.csv")
0056 )
0057 
0058