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

Phase2L1CaloPFClusterEmulator: fix warnings in getEt #43070

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

iarspider
Copy link
Contributor

@iarspider iarspider commented Oct 20, 2023

PR description:

The followings warnings are emitted during compilation:

In function 'getEt',
    inlined from 'recoPfcluster' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:162:31,
    inlined from 'pfcluster' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:181:35,
    inlined from 'produce' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloPFClusterEmulator.cc:149:38:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:134:11: warning: 'et_sumEta[2]' may be used uninitialized [-Wmaybe-uninitialized]
   134 |     float pfcluster_et = et_sumEta[0] + et_sumEta[1] + et_sumEta[2];
      |           ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h: In member function 'produce':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:122:11: note: 'et_sumEta[2]' was declared here
  122 |     float et_sumEta[3];
      |           ^
In function 'getEt',
    inlined from 'recoPfcluster' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:162:31,
    inlined from 'pfcluster' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:181:35,
    inlined from 'produce' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloPFClusterEmulator.cc:149:38:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:134:39: warning: 'et_sumEta[1]' may be used uninitialized [-Wmaybe-uninitialized]
   134 |     float pfcluster_et = et_sumEta[0] + et_sumEta[1] + et_sumEta[2];
      |                                       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h: In member function 'produce':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:122:11: note: 'et_sumEta[1]' was declared here
  122 |     float et_sumEta[3];
      |           ^
In function 'getEt',
    inlined from 'recoPfcluster' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:162:31,
    inlined from 'pfcluster' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:181:35,
    inlined from 'produce' at /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloPFClusterEmulator.cc:149:38:
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:134:39: warning: 'et_sumEta[0]' may be used uninitialized [-Wmaybe-uninitialized]
   134 |     float pfcluster_et = et_sumEta[0] + et_sumEta[1] + et_sumEta[2];
      |                                       ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h: In member function 'produce':
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/c0a3801c18577931e4a34d824c3c3171/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_13_3_DBG_X_2023-10-19-2300/src/L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h:122:11: note: 'et_sumEta[0]' was declared here
  122 |     float et_sumEta[3];
      |           ^

PR validation:

Bot tests

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43070/37291

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @iarspider for master.

It involves the following packages:

  • L1Trigger/L1CaloTrigger (upgrade, l1)

@srimanob, @AdrianoDee, @epalencia, @cmsbuild, @aloeliger can you please review it and eventually sign? Thanks.
@missirol, @Martin-Grunewald this is something you requested to watch as well.
@sextonkennedy, @rappoccio, @antoniovilela you are the release manager for this.

cms-bot commands are listed here

@iarspider
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-adb63e/35313/summary.html
COMMIT: db5d744
CMSSW: CMSSW_13_3_X_2023-10-19-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43070/35313/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: 20 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3357400
  • DQMHistoTests: Total failures: 1064
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3356314
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@aloeliger
Copy link
Contributor

+l1

@srimanob
Copy link
Contributor

srimanob commented Oct 24, 2023

+Upgrade

Technical PR to handle uninitialized variables.

@cmsbuild
Copy link
Contributor

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. @antoniovilela, @rappoccio, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@rappoccio
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 07a781e into cms-sw:master Oct 24, 2023
11 checks passed
@iarspider iarspider deleted the patch-8 branch February 27, 2024 10:16
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.

5 participants