-
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
13_1 backport: Fix numeric issues in PFCand scaling, add some debug output #41608
Conversation
Undo new line modification Remove nan check in pflinker Remove nan check from rescale
A new Pull Request was created by @kdlong (Kenneth Long) for CMSSW_13_1_X. It involves the following packages:
@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
backport of #41550 |
type pf |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5921aa/32541/summary.html Comparison SummarySummary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_13_1_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_13_2_X is complete. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
Thanks @mandrenguyen. My feeling is that it ideally would be back ported. It's quite a corner case that this happens (really large momentum+uncertainty track matched to much smaller calo energy), but when it does happen, the proper averaging and scaling gives the sensible kinematics which is preferable to just skipping them. |
+1 |
PR description:
Fix candidate scaling in cases where momentum is a huge number, where the mass-aware scaling hits numeric issues. The fix is simple, just calculate E in a way without ratios involved. This should be a fix for #41397
PR validation:
Checked that the crash and nan candidate are removed. The mass scaling works properly now.
If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
Backport of #41550