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
Make CSC{AL,CL}CTDigi::getHits() to return by const reference instead of a copy #30247
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30247/16141
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages: DataFormats/CSCDigi @cmsbuild, @civanch, @mdhildreth 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.
|
@makortel Thanks for spotting this. There is a similar line here https://github.com/cms-sw/cmssw/blob/master/DataFormats/CSCDigi/interface/CSCALCTDigi.h#L118, which is not throwing a warning as it is not being used in the CSC validation yet, but it should be modified as well. |
+1 |
Comparison job queued. |
Thanks @dildick, I changed that one as well. |
The code-checks are being triggered in jenkins. |
Pull request #30247 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again. |
@cmsbuild, please test |
The tests are being triggered in jenkins.
|
Comparison is ready Comparison Summary:
|
+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) |
+1 |
PR description:
This PR proposes to change
CSCCLCTDigi::getHits()
to returnCSCCLCTDigi::ComparatorContainer
(vector of vector ofuint16_t
) by a const reference instead of a copy. This change fixes a clang warning inValidation/MuonCSCDigis/src/CSCStubMatcher.cc
https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc7_amd64_gcc820/CMSSW_11_2_CLANG_X_2020-06-14-2300/Validation/MuonCSCDigis
The
CSCALCTDigi::getHits()
is changed accordingly.PR validation:
Code compiles, with clang without warnings.