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
Initialize SpatialRange to avoid compilation warnings on PPC64LE #29763
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29763/15210
|
please test |
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master. It involves the following packages: RecoPPS/Local @perrotta, @cmsbuild, @slava77 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:
|
+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 (and backports should be raised in the release meeting by the corresponding L2) |
@fabferro : while this fix should remain, wouldn't it be more convenient in the two calls pointed out above to check for the non-emptiness of the vecor of hits before calling |
@perrotta that's a good question, I actually don't know if there's a reason why it's not been implemented already. I'd forward the question to the developers of the PPS timing code @forthommel @jan-kaspar |
+1 |
Indeed, thanks @perrotta! I will tackle this in a follow-up PR. |
PR description:
In Power IBs, we have few compilation warnings [a]. This could happen if there are no hits and https://cmssdt.cern.ch/lxr/source/RecoPPS/Local/interface/CTPPSTimingTrackRecognition.h#0198 return the un-initialized SpatialRange. This PR propose to initialize SpatialRange with default values.
[a]
PR validation:
Local compilation with both normal amd64 and ppc64le IBs is successful (without any warnings).