-
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
Implement quick fix for eta going out of scope #43852
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43852/38689
|
A new Pull Request was created by @ccahoughton for master. It involves the following packages:
@srimanob, @aloeliger, @cmsbuild, @subirsarkar, @epalencia can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9e458e/37193/summary.html Comparison SummarySummary:
|
@ccahoughton Even if it is a quick fix, please use phiBins_ - 1 and etaBins_ - 1 in place of 23 and 26 respectively. |
//This is a quick fix to eta going outside of scope - also including protection against phi going outside | ||
//of scope as well. The eta index, j, cannot be less than zero or greater than 23 (the number of eta bins). | ||
//The phi index, i, cannot be less than zero or greater than 26 (the number of phi bins). | ||
if ((j < 0) || (j > 23) || (i < 0) || (i > 26)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You allow bin=0, is it underflow? Or this is just your definition. I see you have the config as
etaBins=cms.int32(24),
phiBins=cms.int32(27),
Testing in private production, issue is gone. I can completely produce sample with no crash (using 1000 events/lumi). |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43852/38703
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9e458e/37221/summary.html Comparison SummarySummary:
|
+l1 |
Milestone for this pull request has been moved to CMSSW_14_1_X. Please open a backport if it should also go in to CMSSW_14_0_X. |
@ccahoughton |
Kindly ping @subirsarkar |
+Upgrade |
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. @sextonkennedy, @rappoccio, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Added quick fix to eta bin indices going out of scope. cms-sw/cmssw#43723 shows that in CMSSW_14_0_0_pre2, a problem emerges when tracks with |eta| > 2.4 are put through the emulator, causing the resultant bin index to have a negative value. The quick fix is to simply discard tracks outside of the allowed eta region for the track jet emulator. There should be no change to the output jets.
PR validation:
#43723 (comment) this comment shows a specific event that causes a segfault. With the implemented changes, there is no segfault at this event.