-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Protect against empty weight container from pythia8 #32077
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32077/19721
|
A new Pull Request was created by @mkirsano (Mikhail Kirsanov) for master. It involves the following packages: GeneratorInterface/Pythia8Interface @SiewYan, @mkirsano, @cmsbuild, @GurpreetSinghChahal, @agrohsje, @alberto-sanchez can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
Hi @mkirsano . Thanks for preparing this PR. Let me try to understand a little better. What was the example that crashed and why didn't this happen before? I am wondering if just filling the weight vector might cause problems upstream in production, hence my question. |
With pythia8 303 any hadronization crashed if the pythia parameter nAttemps with value > 1 was used because if pythia8 works in the mode with only one weight, the weight container in HepMC record is empty. It was never empty in 302. May be a result of some optimization in pythia8. In principle, if there no multiple weights, this container is not needed, but this was not protected in CMSSW. I will ask the authors if this this a bug or a feature. |
@cms-sw/generators-l2 is this PR ready? |
(to be merged with cms-sw/cmsdist#6286, #31816) |
For me yes. Steve reproduced the behaviour in a standalone pythia8. If it is fixed we can reconsider this protection for the next version. |
+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 now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Fix GeneratorInterface crash at the upgrade of pythia8 to 303
PR validation:
if this PR is a backport please specify the original PR and why you need to backport that PR:
Before submitting your pull requests, make sure you followed this checklist: