CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/EgammaAnalysis/ElectronTools/python/calibratedElectrons_cfi.py

Go to the documentation of this file.
00001 
00002 import FWCore.ParameterSet.Config as cms
00003 
00004 
00005 #==============================================================================
00006 # corrected pat electrons
00007 #==============================================================================
00008 
00009 calibratedElectrons = cms.EDProducer("CalibratedElectronProducer",
00010 
00011     # input collections
00012     inputElectronsTag = cms.InputTag('gsfElectrons'),
00013     # name of the ValueMaps containing the regression outputs                               
00014     nameEnergyReg = cms.InputTag('eleRegressionEnergy:eneRegForGsfEle'),
00015     nameEnergyErrorReg = cms.InputTag('eleRegressionEnergy:eneErrorRegForGsfEle'),
00016     # The rechits are needed to compute r9                                     
00017     recHitCollectionEB = cms.InputTag('reducedEcalRecHitsEB'),
00018     recHitCollectionEE = cms.InputTag('reducedEcalRecHitsEE'),
00019 
00020     outputGsfElectronCollectionLabel = cms.string('calibratedGsfElectrons'),
00021     # For conveniency  the ValueMaps are re-created with the new collection as key. The label of the ValueMap are defined below
00022     nameNewEnergyReg = cms.string('eneRegForGsfEle'),
00023     nameNewEnergyErrorReg  = cms.string('eneErrorRegForGsfEle'),                                     
00024                                          
00025     # data or MC corrections
00026     # if isMC is false, data corrections are applied
00027     isMC = cms.bool(False),
00028     
00029     # set to True to get more printout   
00030     verbose = cms.bool(False),
00031 
00032     # set to True to get special "fake" smearing for synchronization. Use JUST in case of synchronization
00033     synchronization = cms.bool(False),
00034 
00035     updateEnergyError = cms.bool(True),
00036 
00037     # define the type of the scale corrections 
00038     # described in details here: 
00039     # https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_resolu
00040     correctionsType = cms.int32(2),
00041     # Apply or not the linearity correction on data
00042     # Can only be applied with combinationType = 3
00043     applyLinearityCorrection = cms.bool(True),
00044     # define the type of the E-p combination 
00045     # described in details here: 
00046     # https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_resolu
00047     combinationType = cms.int32(3),
00048     
00049     # this variable is used only for Moriond 2013 analysis with old regression
00050     # see https://twiki.cern.ch/twiki/bin/viewauth/CMS/EgammaElectronEnergyScale#Electron_energy_scale_and_re_AN1
00051     # for the meaning
00052     lumiRatio = cms.double(0.0),
00053    
00054     # input datasets
00055     # Prompt means May10+Promptv4+Aug05+Promptv6 for 2011
00056     # ReReco means Jul05+Aug05+Oct03 for 2011
00057     # Jan16ReReco means Jan16 for 2011
00058     # Summer11 means summer11 MC
00059     # etc.
00060     inputDataset = cms.string("22Jan2013ReReco"),
00061     
00062     # input pathes should be set accordingly to the combinationType and regressionType
00063     combinationRegressionInputPath = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_WithSubClusters_VApr15.root"),
00064     scaleCorrectionsInputPath = cms.string("EgammaAnalysis/ElectronTools/data/scalesNewReg-May2013.csv"),
00065     linearityCorrectionsInputPath = cms.string("EgammaAnalysis/ElectronTools/data/linearityNewReg-May2013.csv")
00066 )
00067 
00068