Skip to content
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 - Fix ECAL static analyzer issues in CalibCalorimetry and CondFormats packages #38235

Merged
merged 4 commits into from Jun 5, 2022

Conversation

thomreis
Copy link
Contributor

@thomreis thomreis commented Jun 3, 2022

PR description:

Fixes some ECAL related static analyzer issues in CalibCalorimetry and CondFormats packages

  • CalibCalorimetry/CaloMiscalibTools
  • CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos
  • CalibCalorimetry/EcalLaserSorting
  • CondFormats/EcalCorrections

PR validation:

Passes matrix tests.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 3, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38235/30384

  • This PR adds an extra 188KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 3, 2022

A new Pull Request was created by @thomreis (Thomas Reis) for master.

It involves the following packages:

  • CalibCalorimetry/CaloMiscalibTools (alca)
  • CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos (alca)
  • CalibCalorimetry/EcalLaserSorting (alca)
  • CondFormats/EcalCorrections (db, alca)

@malbouis, @yuanchao, @cmsbuild, @ggovi, @francescobrivio, @tvami can you please review it and eventually sign? Thanks.
@rchatter, @tocheng, @argiro, @thomreis, @simonepigazzini, @mmusich, @seemasharmafnal this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@tvami
Copy link
Contributor

tvami commented Jun 3, 2022

Hi @thomreis can you confirm my understanding that none of this is needed for the data taking? Thanks! Please mention in the PR description that there is no backport needed.

@thomreis
Copy link
Contributor Author

thomreis commented Jun 3, 2022

None of this is needed for data taking. No backport is needed.

@tvami
Copy link
Contributor

tvami commented Jun 3, 2022

Thanks for confirming!

if (EEDetId::validDetId(ix, iy, iz)) {
EEDetId cell(ix, iy, iz);
return cell;
} else {
std::cout << "Null coordinates = " << ix << "," << iy << "," << iz << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cout should be replaced with the relevant MsgLogger function, maybe for another PR tho?

TEcnaParPaths* pCnaParPaths,
TEcnaParCout* pCnaParCout,
TEcnaParEcal* pEcal,
TEcnaNumbering* pEcalNumbering) {
// std::cout << "[Info Management] CLASS: TEcnaWrite. CREATE OBJECT: this = " << this << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove commented out code

@tvami
Copy link
Contributor

tvami commented Jun 3, 2022

@cmsbuild , please test

@tvami
Copy link
Contributor

tvami commented Jun 3, 2022

@thomreis if you prefer I'm fine approving this PR as it is, and you can have a dedicated PR for cout-s and commented out code in the future?

@thomreis
Copy link
Contributor Author

thomreis commented Jun 3, 2022

Hi @tvami, yes the purpose of this PR was to address SA issues. Code cleaning can be done in a future PR.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 3, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b3636e/25257/summary.html
COMMIT: 37567ab
CMSSW: CMSSW_12_5_X_2022-06-03-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/38235/25257/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3651513
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3651483
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 49 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 208 log files, 45 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Jun 3, 2022

@thomreis
Copy link
Contributor Author

thomreis commented Jun 4, 2022

Yes, the PR does not fix all of the SA issues. Some of them are related to HCAL, the non-const global static variables are from ROOT macros and the non-const static variables I do not really know how to fix without touching the functionality of the code.

@tvami
Copy link
Contributor

tvami commented Jun 4, 2022

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 4, 2022

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)

@qliphy
Copy link
Contributor

qliphy commented Jun 5, 2022

+1

@cmsbuild cmsbuild merged commit 14f8f61 into cms-sw:master Jun 5, 2022
@thomreis thomreis deleted the ecal-sa-issues-june2022 branch February 2, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants