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

Fix PSWeights in LumiHeader to work w diff pythia format #31982

Merged
merged 2 commits into from Nov 9, 2020

Conversation

dteague
Copy link

@dteague dteague commented Oct 29, 2020

PR description:

For UL, a new format for PartonShower weights is used in the LumiHeader (isr:murfac=0.5 instead of isrDefLo), so this PR is primarily aimed at fixing this for creating the Gen weight table. Further code is added to avoid edge cases where weight names are missing in the header (possibly caused by these names being put in by hand).

For more discussion, look at this discussion as well as the comments from this PR on a different branch

PR validation:

Here is a list of files that were tested on. The code was tested in two different modes: keepAllPSWeights=True and keepAllPSWeights=False (ie only store 4 main variations).

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31982/19457

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@mariadalfonso
Copy link
Contributor

assign generators

@mariadalfonso
Copy link
Contributor

@dteague
please resolve the code-checks committing the result of scram build code-checks so that we can start the test

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31982/19478

@cmsbuild
Copy link
Contributor

New categories assigned: generators

@alberto-sanchez,@SiewYan,@GurpreetSinghChahal,@mkirsano,@agrohsje you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @dteague (Dylan Teague) for master.

It involves the following packages:

PhysicsTools/NanoAOD

@SiewYan, @gouskos, @mkirsano, @cmsbuild, @GurpreetSinghChahal, @fgolf, @alberto-sanchez, @agrohsje, @mariadalfonso, @santocch can you please review it and eventually sign? Thanks.
@gpetruc, @peruzzim, @swertz 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

@mariadalfonso
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 30, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2544092
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2544069
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@agrohsje
Copy link

agrohsje commented Nov 2, 2020

Hi @dteague From this discussion: cms-nanoAOD#546 (comment)
I understand the PR addresses all cases (spaces in pre UL, as well as differences between P8.230 and P8.240) ?
Did you test?

@dteague
Copy link
Author

dteague commented Nov 2, 2020

Hi @dteague From this discussion: cms-nanoAOD#546 (comment)
I understand the PR addresses all cases (spaces in pre UL, as well as differences between P8.230 and P8.240) ?
Did you test?

For my tests, I tested the old and new P8 weight format, files that had no lumiheader (possibly has weights or not), and files with the errors in the lumi header (only with P8.230, though the code should work for the p8.240 as long as there is at least one weight name in the header). For specific files I tested on that are exemplars of the types of files I was testing for:

  • Old Format: /DYJetsToLL_M-5to50_TuneCP5_13TeV-madgraphMLM-pythia8/RunIIAutumn18MiniAOD-102X_upgrade2018_realistic_v15-v2/MINIAODSIM
  • Old Format/Handmade: /TTWJetsToLNu_TuneCP5_PSweights_13TeV-amcatnloFXFX-madspin-pythia8/RunIIFall17MiniAODv2-PU2017_12Apr2018_94X_mc2017_realistic_v14-v1/MINIAODSIM
  • New Format: /TTJets_TuneCP5_13TeV-amcatnloFXFX-pythia8/RunIISummer19UL18MiniAOD-106X_upgrade2018_realistic_v11_L1v1-v2/MINIAODSIM
  • New Format/Handmade: None found
  • No Header: /NMSSM_XToYHTo4b_MX-1200_TuneCP5_13TeV-madgraph-pythia8/RunIIFall17MiniAODv2-PU2017_12Apr2018_RP_94X_mc2017_realistic_v14-v1/MINIAODSIM

I think that should be exhaustive of the types of files one might find, at least from my understanding of the discussion in that issue thread, but if there are other sample that should be tested on, point me to them and I can test them out.

@mariadalfonso
Copy link
Contributor

@agrohsje
the list provided by @dteague is enough ? or you envisage more testing ?

@agrohsje
Copy link

agrohsje commented Nov 9, 2020

+1

@mariadalfonso
Copy link
Contributor

+xpog

testing shows no difference as expected for the MC that are not interested by this fix

@silviodonato
Copy link
Contributor

merge

@santocch
Copy link

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). 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

6 participants