cmsrel CMSSW_7_6_3
cd CMSSW_7_6_3/src
cmsenv
git cms-merge-topic -u matteosan1:smearer_76X
git clone https://github.com/arunhep/DYAnalysis.git
scramv1 b -j 4
cd DYAnalysis/ElectronNtupler/test
cmsRun runElectrons.py
cmsRun runElectrons_smeared.py
-
Look for "process.GlobalTag.globaltag" and change the Global Tag according to data and MC.
-
Look for "isMC" and "isSIG" and change them to True and False accordingly. "isSig" is only true if you are running on DY MC.
-
Dont forget to change the input file.
Twiki for Smearing : https://twiki.cern.ch/twiki/bin/viewauth/CMS/EGMSmearer#Energy_smearing_and_scale_co_AN1
Electron cut based id : https://twiki.cern.ch/twiki/bin/viewauth/CMS/CutBasedElectronIdentificationRun2#ICHEP16_recommendations
cd EgammaAnalysis/ElectronTools/python
vim calibratedElectronsRun2_cfi.py
Change the "isMC" parameter accordingly and then compile.
Also, one can change the source of electrons : electrons = cms.InputTag('selectedElectrons'),