Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemention of electron energy uncertainties for MC #265

Merged
merged 4 commits into from
May 6, 2024

Conversation

nshadskiy
Copy link
Contributor

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:

pT_up = pT_nominal + Electron_dEsigmaUp / cosh(eta)
pT_down = pT_nominal + Electron_dEsigmaDown / cosh(eta)

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)

The json files are take from https://github.com/cms-egamma/ScaleFactorsJSON

Copy link
Member

@harrypuuter harrypuuter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, see small questions above

src/physicsobjects.cxx Outdated Show resolved Hide resolved
@harrypuuter
Copy link
Member

The corrections folder is still called patch

@nshadskiy nshadskiy merged commit 7aefa7a into main May 6, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants