-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
ECAL : corrections in the condition tools code : ThreadSafety, Dead store #36293
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36293/27002
|
A new Pull Request was created by @depasse for master. It involves the following packages:
@cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
CondTools/Ecal/src/EcalDCSHandler.cc
Outdated
@@ -272,6 +272,8 @@ bool popcon::EcalDCSHandler::insertHVDataSetToOffline(const std::map<EcalLogicID | |||
ex_y[4] = 12; | |||
ex_x[5] = 6; | |||
ex_y[5] = 11; | |||
} else { | |||
std::cout << "Dee number not known !" << std::endl; |
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 will not fix the issue about ex_x[l]
containing garbage since the array is still not defined. And indeed the same is true for ex_y[l]
as far as I can see even though the SA does not flag it.
Since we have only four Dees in CMS I think you could just throw an exception since clearly something is wrong in this case.
CondTools/Ecal/src/EcalDCSHandler.cc
Outdated
// if (lv_off_dbstatus > 0) | ||
// lv_off_dbstatus = 1; | ||
// if (lv_nomi_off_dbstatus > 0) | ||
// lv_nomi_off_dbstatus = 1; |
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.
Remove the commented out code if it is not needed.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36293/27025
|
@cmsbuild , please test |
the title of this PR is extremely generic. For the benefit of the readers of the future release notes would it be possible to state explicitly this is about ECAL condition tools? |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ccb5de/20873/summary.html Comparison SummarySummary:
|
Hi @depasse yes, please change the title of the PR. |
@tvami yes the legacy module is going to be fixed in a different PR to be made shortly. |
+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) |
This PR is supposed to improve Thread Safety of the code involved. |
This PR is to fix Static Analyzer issues. Some of those concern thread safety in the form of non-const static variables. Those should be fixed with the current changes. The modules themselves do not need to be thread safe. |
+1 |
Hi,
I had begun to change the std::cout by edm:LogInfo but there are tens of such structures in this PR files.
So if well understood, I stop there.
Best regards.
…________________________________
From: Andrea Perrotta ***@***.***
Sent: 01 December 2021 17:59
To: cms-sw/cmssw
Cc: Pierre Depasse; Mention
Subject: Re: [cms-sw/cmssw] ECAL : corrections in the condition tools code : ThreadSafety, Dead store (PR #36293)
+1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#36293 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABDIEW3RSCXTAAFE4G2HBATUOZH75ANCNFSM5JBIOFYQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@depasse if you have things done, let's not stash them, but let's open a new PR, it could be a bigger dedicated one that concentrates on the cout-s. |
PR description:
ECAL : corrections in the condition tools code : dead assignment, dead initialization, non-const static variables
PR validation:
Done with success :
$ scram build code-checks
$ scram build code-format
$ scram build runtests
if this PR is a backport please specify the original PR and why you need to backport that PR:
No backport