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

Backport of code changes to 106X for PR 30922 : Enabling re-application of Type1 Corrections for PuppiMET and adding PUPPI MET Uncertainties #31638

Merged

Conversation

saghosh
Copy link
Contributor

@saghosh saghosh commented Oct 1, 2020

PR description:

This is a backport to 106X for the merged CMSSW PR 30922 : #30922

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
And also CMSSW github issue:
#30304

PR validation:

Checked successfully with runTheMatrix test workflows

For verification of code, please see the slides linked below
https://indico.cern.ch/event/924615/contributions/3885484/attachments/2049952/3435787/Pre_EPR_MET_June3.pdf

if this PR is a backport please specify the original PR and why you need to backport that PR:

Backport of:
#30922

Required for UltraLegacy reprocessing , JME NanoAOD

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

A new Pull Request was created by @saghosh (Saranya Ghosh) for CMSSW_10_6_X.

It involves the following packages:

PhysicsTools/NanoAOD

@gouskos, @cmsbuild, @fgolf, @mariadalfonso, @santocch, @peruzzim can you please review it and eventually sign? Thanks.
@gpetruc this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@saghosh
Copy link
Contributor Author

saghosh commented Oct 1, 2020

@mariadalfonso @lathomas : I was told to make sure all the changes are within the condition for modifier run2_miniAOD_devel.
Can you please check, and recommend if any other modifiers need to be used.

@mariadalfonso
Copy link
Contributor

@mariadalfonso @lathomas : I was told to make sure all the changes are within the condition for modifier run2_miniAOD_devel.
Can you please check, and recommend if any other modifiers need to be used.

I'm not sure I understand here:

  • first run2_miniAOD_devel had been move to run2_miniAOD_UL.
  • second we want to fix the type1MET only on previously made mini
    Your PR analysis doesn't change mini, only nano (policy: Mini should not change, for nano we can change as soon as is consisted with calibration).

Finally updates on the PhysicsTools/NanoAOD/python/nanoDQM_cfi.py present in master are missing

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

Pull request #31638 was updated. @gouskos, @cmsbuild, @fgolf, @mariadalfonso, @santocch, @peruzzim can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

Pull request #31638 was updated. @gouskos, @cmsbuild, @fgolf, @mariadalfonso, @santocch, @peruzzim can you please check and sign again.

@saghosh
Copy link
Contributor Author

saghosh commented Oct 1, 2020

@mariadalfonso Thanks for the clarification, code now synchronised with that for the master

@mariadalfonso
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

+1
Tested at: 300ee59
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d9ec03/9685/summary.html
CMSSW: CMSSW_10_6_X_2020-10-01-1100
SCRAM_ARCH: slc7_amd64_gcc700

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d9ec03/9685/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 17 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 3214655
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3214314
  • DQMHistoTests: Total skipped: 334
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 1.492 KiB( 33 files compared)
  • DQMHistoSizes: changed ( 1325.7 ): 1.492 KiB Physics/NanoAODDQM
  • Checked 140 log files, 14 edm output root files, 34 DQM output files

@mariadalfonso
Copy link
Contributor

+xpog
backport inline with master

For new UL (reMini and run2_nanoAOD_106Xv1 ) type1 MET fixed with:

  • new v15 puppi tune used for the rawPuppiMET
  • type1MET correction done on the fly with ak4 puppi jets (still with v15) and with the appropriate jets. [Not possible to do a posteriori since the ak4 puppi jets are not stored in nano].

puppiMET weights for EOY not touched, only type1 corrections are reapplied.

@silviodonato
Copy link
Contributor

@saghosh @cms-sw/xpog-l2 This PR change the standard workflowa 1325.7 (see Physics/NanoAODDQM/PuppiMET https://tinyurl.com/y4fdzdtc) image.
Workflow 1325.7 is a nanoAOD production using a 94X MiniAOD as input (it uses the run2_nanoAOD_94XMiniAODv2 modifier).
Could you clarify if this behaviour is expected and in general how do you treat the "no-change rule" in NanoAOD? Thanks

@saghosh
Copy link
Contributor Author

saghosh commented Oct 5, 2020

@saghosh @cms-sw/xpog-l2 This PR change the standard workflowa 1325.7 (see Physics/NanoAODDQM/PuppiMET https://tinyurl.com/y4fdzdtc) image.
Workflow 1325.7 is a nanoAOD production using a 94X MiniAOD as input (it uses the run2_nanoAOD_94XMiniAODv2 modifier).
Could you clarify if this behaviour is expected and in general how do you treat the "no-change rule" in NanoAOD? Thanks

@mariadalfonso : could you please let me know if the changes for correcting the PUPPI MET have to be placed under a modifier? (perhaps run2_nanoAOD_106Xv1 ?)

@mariadalfonso
Copy link
Contributor

mariadalfonso commented Oct 5, 2020

@saghosh @cms-sw/xpog-l2 This PR change the standard workflowa 1325.7 (see Physics/NanoAODDQM/PuppiMET https://tinyurl.com/y4fdzdtc) image.
Workflow 1325.7 is a nanoAOD production using a 94X MiniAOD as input (it uses the run2_nanoAOD_94XMiniAODv2 modifier).
Could you clarify if this behaviour is expected and in general how do you treat the "no-change rule" in NanoAOD? Thanks

yes, this PR is expected to change the puppi Type1MET when running in the previous nano.

policy: Mini-objects should not change, for nano we should fix/update the analysis recipe as soon as is consisted with calibration.

One more difference related to the modifiers: in miniAOD the modifier specify the output dataset; while for the nanoAOD it specify the input miniAOD dataset

@silviodonato
Copy link
Contributor

merge
as discussed at the ORP meeting, there are no on-going nanoaod production in 10_6_X
@cms-sw/analysis-l2 please let us know if you have any comments

@cmsbuild cmsbuild merged commit 2b6928f into cms-sw:CMSSW_10_6_X Oct 7, 2020
@santocch
Copy link

santocch commented Oct 8, 2020

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 8, 2020

This pull request is fully signed and it will be integrated in one of the next CMSSW_10_6_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_11_2_X is complete. This pull request will be automatically merged.

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

Successfully merging this pull request may close these issues.

None yet

5 participants