The branches for the energy scale uncertainty are unfortunately broken for MC and always 0. Therefore a patch with a correctionlib json is used (ERA e.g. "2018"):
pT_up = pT_nominal * sf("ERA", "scaleup", eta, gain)
pT_down = pT_nominal * sf("ERA", "scaledown", eta, gain)
In this pull request a producer is introduced to derive uncertainties for the already applied (in nanoAOD) electron energy corrections for simulated samples. The implementation is based on the information from https://cms-talk.web.cern.ch/t/electron-scale-smear-variables-in-nanoaod/20210 and https://twiki.cern.ch/twiki/bin/view/CMS/EgammaSFJSON. For the energy resolution uncertainty dedicated branches in nanoAOD are used:
The branches for the energy scale uncertainty are unfortunately broken for MC and always 0. Therefore a patch with a correctionlib json is used (ERA e.g. "2018"):
The json files are take from https://github.com/cms-egamma/ScaleFactorsJSON