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 bit value checks in HcalNoiseInfoProducer #26556
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26556/9456
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages: RecoMET/METProducers @perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
@jkunkle @igv4321 @abdoulline @deguio @mariadalfonso @eioannou : could any of you please check and confirm? |
Thank you Salavat! I'm waiting for some feedback from the group then, just to confirm that the original intention of the authors are correctly mirrored in this PR |
Just by eyeballing the changes in the code, this fix definitely looks like a step in the right direction. But, of course, the HCAL Noise group will provide more informative feedback... |
type bugfix |
@abdoulline @jaehyeok : did you already evaluate the possible effects of this fix? As the code changes look quite reasonable, it is just a matter of getting confirmation from your side that there are no unwanted side effects, and then this PR can be accepted for the integration: it wold be nice doing it before the pre5 deadline of tomorrow. |
Hi @perrotta, Let me check with the guy who has been working on it. I will get back to you soon. |
Hi @abdoulline and @jaehyeok , Thanks [1] file:/eos/cms/store/data/Run2018A/MET/RAW/v1/000/316/995/00000/CC6B1013-4462-E811-B884-FA163EE3010D.root |
Thank you @cpkar |
(better late than never...) Sorry for the late reply. as far as I can see, the fix is applied to the HCAL Channel status bits, which aren't set in DB. That's why there is no difference in Chandi's test. |
+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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Comparison like
(value & (1<<shift)) == 1
forshift > 1
will always returnfalse
. Assuming that the intention was to check with== 1
that the corresponding bit was set, and with== 0
that it was not set, this PR suggests to replace the explicit bit operations with calls toHcalChannelStatus::isBitSet()
. These were found by GCC 9.PR validation:
The code compiles without warnings with GCC 9.