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
bugfix RPCSeedGenerator wrong nullptr check #33753
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33753/22702
|
A new Pull Request was created by @jhgoh (Junghwan John Goh) for master. It involves the following packages: RecoMuon/MuonSeedGenerator @perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
type bugfix |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-99ecee/15138/summary.html Comparison SummarySummary:
|
Thank you @jhgoh In fact, this (legacy!) EDProducer doesn't even seem to be used anywhere: a However, the fix is rather straightforward, and it is worth to fix it. |
+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) |
@jhgoh cout is not thread-safe, would you please take the chance to replace it with LogVerbatim or LogInfo or something similar (see https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideMessageLogger )? |
@qliphy that's correct, but this code is never used in production (it is also a legacy EDProducer, and that also should have to be fixed at some point). |
+1 |
PR description:
A nullptr-check went opposite way in the RPCSeedGenerator of the RecoMuon package, discovered thanks to @perrotta.
In addition, a minor fix to printout message is done.
The standard sequences seem to be unaffected due to this potential bug, maybe because validity checks were done using the other flags in the same if-statement.
Since this PR introduces only a safeguard from potential crash (+correction to the printout debug message) and does not include any significant change. Therefore we expect no change in outcomes of the standard reconstruction with this PR.
The latest change to this module is done with the PR #30687, which was also a technical change.
PR validation:
This PR compiles without error and passes code-checks & a runTheMatrix workflow (13250 WF for a quick check)
@andresib @mileva