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
Remove a dead assignment of accChargeForToA in the HGCDigitizer #39622
Remove a dead assignment of accChargeForToA in the HGCDigitizer #39622
Conversation
assign hgcal-dpg |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39622/32417
|
New categories assigned: hgcal-dpg @felicepantaleo,@rovere,@pfs,@cseez you have been requested to review this Pull request/Issue and eventually sign? Thanks |
A new Pull Request was created by @perrotta (Andrea Perrotta) for master. It involves the following packages:
@cseez, @civanch, @felicepantaleo, @rovere, @cmsbuild, @AdrianoDee, @srimanob, @mdhildreth, @pfs can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
const auto aboveThrPos = std::upper_bound( | ||
hitRec.begin(), hitRec.end(), std::make_pair(cell_threshold, 0.f), [](const auto& i, const auto& j) { | ||
return i.first < j.first; | ||
}); | ||
|
||
if (aboveThrPos == hitRec.end()) { | ||
accChargeForToA = hitRec.back().first; | ||
fireTDC = 0.f; | ||
// fireTDC = 0.f; |
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.
Would it make the code more readable if the 2 conditions are combined?
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.
Would it make the code more readable if the 2 conditions are combined?
Why not....
It is up to you, anyhow. I did not want to modify too much the structure of the code, but if you want I can implement it here as well.
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.
👍🏻
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.
@rovere done
bfde294
to
1569b96
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39622/32421
|
Pull request #39622 was updated. @cseez, @civanch, @felicepantaleo, @rovere, @cmsbuild, @AdrianoDee, @srimanob, @mdhildreth, @pfs can you please check and sign again. |
please test |
No need to keep this PR in standby forever only because it points out a bug in the code: an issue for it has been opened in #40576 for that |
please test |
unhold |
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
-1 Failed Tests: RelVals-INPUT RelVals-INPUTThe relvals timed out after 4 hours. Comparison SummarySummary:
|
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c3e35e/30108/summary.html Comparison SummarySummary:
|
+1 |
PR description:
Spotted by the static analyzer
PR validation:
It builds succesfully
No changes at all expected in the outputs