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

Fix deprecated-copy warnings in MagneticField/ParametrizedEngine #43399

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

iarspider
Copy link
Contributor

PR description:

Fix deprecated-copy warnings (rule-of-three violation) in MagneticField/ParametrizedEngine:

/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.cc: In static member function 'static void magfieldparam::rz_harm_poly::SetTrigArrSize(unsigned int)':
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.cc:108:32: warning: implicitly-declared 'constexpr magfieldparam::trig_pair& magfieldparam::trig_pair::operator=(const magfieldparam::trig_pair&)' is deprecated [-Wdeprecated-copy]
   108 |   (*TrigArr) = trig_pair(1., 0.);
      |                                ^
In file included from /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.cc:2:
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.h:20:5: note: because 'magfieldparam::trig_pair' has user-provided 'magfieldparam::trig_pair::trig_pair(const magfieldparam::trig_pair&)'
   20 |     trig_pair(const trig_pair &tp) : CosPhi(tp.CosPhi), SinPhi(tp.SinPhi) {}
      |     ^~~~~~~~~
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.cc: In static member function 'static void magfieldparam::rz_harm_poly::FillTrigArr(double)':
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.cc:119:16: warning: implicitly-declared 'constexpr magfieldparam::trig_pair& magfieldparam::trig_pair::operator=(const magfieldparam::trig_pair&)' is deprecated [-Wdeprecated-copy]
   119 |   TrigArr[1] = tp;
      |                ^~
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.h:20:5: note: because 'magfieldparam::trig_pair' has user-provided 'magfieldparam::trig_pair::trig_pair(const magfieldparam::trig_pair&)'
   20 |     trig_pair(const trig_pair &tp) : CosPhi(tp.CosPhi), SinPhi(tp.SinPhi) {}
      |     ^~~~~~~~~
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.cc:121:41: warning: implicitly-declared 'constexpr magfieldparam::trig_pair& magfieldparam::trig_pair::operator=(const magfieldparam::trig_pair&)' is deprecated [-Wdeprecated-copy]
   121 |     TrigArr[jp] = TrigArr[jp - 1].Add(tp);
      |                                         ^
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/36ee15c53d3074956fb6548fe912a5bd/opt/cmssw/el8_amd64_gcc12/cms/cmssw/CMSSW_14_0_DEVEL_X_2023-11-26-2300/src/MagneticField/ParametrizedEngine/src/rz_harm_poly.h:20:5: note: because 'magfieldparam::trig_pair' has user-provided 'magfieldparam::trig_pair::trig_pair(const magfieldparam::trig_pair&)'
   20 |     trig_pair(const trig_pair &tp) : CosPhi(tp.CosPhi), SinPhi(tp.SinPhi) {}
      |     ^~~~~~~~~

PR validation:

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

Before submitting your pull requests, make sure you followed this checklist:

@iarspider
Copy link
Contributor Author

please test for CMSSW_14_0_DEVEL_X

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43399/37899

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • MagneticField/ParametrizedEngine (reconstruction)

@mandrenguyen, @jfernan2 can you please review it and eventually sign? Thanks.
@namapane this is something you requested to watch as well.
@antoniovilela, @sextonkennedy, @rappoccio 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-ec007e/36085/summary.html
COMMIT: 134da5e
CMSSW: CMSSW_14_0_X_2023-11-26-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/43399/36085/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@jfernan2
Copy link
Contributor

+1

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

@rappoccio
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 120f1a7 into cms-sw:master Dec 1, 2023
This was referenced Dec 2, 2023
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.

4 participants