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 dead code and apply one fix in DQM/L1TMonitor #34794
Remove dead code and apply one fix in DQM/L1TMonitor #34794
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34794/24500
|
if (algoFired) { | ||
m_missFireNumerator[triggerName]++; |
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.
This is the bug that is fixed
A new Pull Request was created by @perrotta (Andrea Perrotta) for master. It involves the following packages:
@andrius-k, @kmaeshima, @ErnestaP, @ahmad3213, @cmsbuild, @jfernan2, @rvenditti can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-7ba697/17569/summary.html Comparison SummarySummary:
|
@cms-sw/dqm-l2 any comment? |
+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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
Thank you @jfernan2 : did you get any idea about whether DQM/L1TMonitor/src/L1TBPTX.cc is ever used? Why the bug went unnoticed? |
It seems to me it is used in: cmssw/DQM/L1TMonitor/python/L1TMonitor_cff.py Line 167 in 6d2f660
for Online DQM but then removed in the clients.
So, I am afraid it is only used in local tests. Hence, most likely not used any longer. Let me include here L1T DQM contacts for confirmation: |
PR description:
The static analyzer is pointing to some unused code and dead initializations
While fixing them, I hit an obvious bug in previous L452 of DQM/L1TMonitor/src/L1TBPTX.cc where the numerator was filled twice, and none the numerator.
This makes me wonder whether this code was ever used... Anyhow, here is the fix.
PR validation:
It builds