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

PuppiMET does not include latest JECs for Type-1 corrections in NanoAOD and missing uncertainties #30304

Closed
saghosh opened this issue Jun 19, 2020 · 7 comments

Comments

@saghosh
Copy link
Contributor

saghosh commented Jun 19, 2020

Reapplication of JECs for Type-1 corrections for PuppiMET is not performed to include the latest JECs during NanoAOD production.
https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/NanoAOD/python/nano_cff.py#L198

This is particularly relevant for 2018D in which the MiniAOD is PROMPT RECO.
It is not possible to re-apply JECs on the fly since the AK4PuppiJet collection is not stored in NanoAOD.

Also uncertainties for PuppiMET, particularly UnclusteredEnergy Uncertainties and the JER, JES down uncertainties are missing.
Only part of the uncertainties were added previously : https://github.com/cms-nanoAOD/cmssw/pull/516/files

This issue is already raised in the NanoAOD git area :
cms-nanoAOD#523

@cmsbuild
Copy link
Contributor

A new Issue was created by @saghosh Saranya Ghosh.

@Dr15Jones, @silviodonato, @dpiparo, @smuzaffar, @makortel can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@saghosh
Copy link
Contributor Author

saghosh commented Jun 19, 2020

Bringing to the notice of @ahinzmann , @lathomas , @peruzzim

I have made the code changes required for a pull request [1].

Before opening a pull request, I wanted to ask about the line 219
in the nano_cff file [2], where the 'switchOnVIDPhotonIdProducer'
function is called and it is mentioned in the comments that this
should not be used in case 'makePuppiesFromMiniAOD' is called, which
we want to do.
Going through the history, it appears that @peruzzim had made the last
change for this [3], so perhaps you can tell me if I should also
comment out the call to switchOnVIDPhotonIdProducer for this code
change or not.

[1] saghosh@ae4793e

[2] https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/NanoAOD/python/nano_cff.py#L219

[3] 88d684c

@makortel
Copy link
Contributor

assign reconstruction, xpog

@cmsbuild
Copy link
Contributor

New categories assigned: xpog,reconstruction

@slava77,@fgolf,@perrotta,@peruzzim you have been requested to review this Pull request/Issue and eventually sign? Thanks

@ahinzmann
Copy link
Contributor

@saghosh In the latest Run2 release (10_6_X) Puppi is actually not using photon ID anymore and not calling switchOnVIDPhotonIdProducer anymore:
https://github.com/cms-sw/cmssw/blob/CMSSW_10_6_X/PhysicsTools/PatAlgos/python/slimming/puppiForMET_cff.py
So I believe you can leave the NanoAOD code untouched, and get rid of the comments related to VID, which do not hold anymore.

@saghosh
Copy link
Contributor Author

saghosh commented Jul 6, 2020

Hello, thank you.
For more details about the issue and resolution and the verification of it, please see the slides linked below
https://indico.cern.ch/event/924615/contributions/3885484/attachments/2049952/3435787/Pre_EPR_MET_June3.pdf

@saghosh
Copy link
Contributor Author

saghosh commented Sep 16, 2020

Resolved with PR #30922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants