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
Conversation
The code-checks are being triggered in jenkins. |
-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)
|
assign generators |
@dteague |
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31982/19478
|
New categories assigned: generators @alberto-sanchez,@SiewYan,@GurpreetSinghChahal,@mkirsano,@agrohsje you have been requested to review this Pull request/Issue and eventually sign? Thanks |
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. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins.
|
Comparison is ready Comparison Summary:
|
Hi @dteague From this discussion: cms-nanoAOD#546 (comment) |
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:
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. |
+1 |
+xpog testing shows no difference as expected for the MC that are not interested by this fix |
merge |
+1 |
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. |
PR description:
For UL, a new format for PartonShower weights is used in the LumiHeader (
isr:murfac=0.5
instead ofisrDefLo
), 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
andkeepAllPSWeights=False
(ie only store 4 main variations).