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

Update classes inheriting from ROOT::Minuit2::FCNBase to account for changes in ROOTmaster #45965

Merged

Conversation

iarspider
Copy link
Contributor

@iarspider iarspider commented Sep 10, 2024

PR description:

ROOT::Minuit2::FCNBase interface changed in root-project/root@63636f6:

[Minuit2] Use std::span instead of std::vector const& for parameters

Use std::span instead of std::vector const& for function parameters
in Minuit2.

The motivation is that std::span is more general. If the function
takes a std::vector const&, the inputs are forced to be allocated on
the heap. So if one wants to call functions with constant size or even
scalar input, that would cause a large overhead.

This overhead can be avoided when generalizing with std::span.

The standalone Minuit2 build files were also changed to consider the
std::span backport to C++17 that is already in ROOT.

This PR updates classes that inherit from it.

PR validation:

Bot tests.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 10, 2024

cms-bot internal usage

@iarspider iarspider changed the title Update classes inheriting from ROOT::Minuit2::FCNBase to account for changes in ROOTmaster [ROOTMaster] Update classes inheriting from ROOT::Minuit2::FCNBase to account for changes in ROOTmaster Sep 10, 2024
@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • OnlineDB/CSCCondDB (db)
  • RecoVertex/BeamSpotProducer (reconstruction, alca)

@cmsbuild, @consuegs, @francescobrivio, @jfernan2, @mandrenguyen, @perrotta, @saumyaphor4252 can you please review it and eventually sign? Thanks.
@GiacomoSguazzoni, @JanChyczynski, @JanFSchulte, @PonIlya, @VinInn, @VourMa, @dgulhan, @fabiocos, @francescobrivio, @martinamalberti, @missirol, @mmusich, @mtosi, @rovere, @rsreds, @tocheng, @yuanchao this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

Pull request has been put on hold by @iarspider
They need to issue an unhold command to remove the hold state or L1 can unhold it for all

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45965/41722

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #45965 was updated. @cmsbuild, @consuegs, @francescobrivio, @jfernan2, @mandrenguyen, @perrotta, @saumyaphor4252 can you please check and sign again.

@iarspider
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 16KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-dfba33/41467/summary.html
COMMIT: 4b5e99d
CMSSW: CMSSW_14_2_X_2024-09-11-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/45965/41467/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@jfernan2
Copy link
Contributor

+1

@smuzaffar
Copy link
Contributor

@cms-sw/alca-l2 @cms-sw/db-l2 can you please review this pr. it contains changes needed for latest root development

@cms-sw cms-sw deleted a comment from iarspider Sep 13, 2024
@cmsbuild cmsbuild removed the hold label Sep 13, 2024
@smuzaffar
Copy link
Contributor

This PR updates classes that inherit from it. This change is probably not backwards-compatible.

I think this is not true any more. The changes in this PR are backwards-compatible ... right?
@saumyaphor4252 , @perrotta and @consuegs integration of this will allow us to test latest root changes e.g. they have recently intergated llvm 18 in to root and we would like to test that as soon as possible.

@smuzaffar smuzaffar changed the title [ROOTMaster] Update classes inheriting from ROOT::Minuit2::FCNBase to account for changes in ROOTmaster Update classes inheriting from ROOT::Minuit2::FCNBase to account for changes in ROOTmaster Sep 13, 2024
@perrotta
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. @rappoccio, @sextonkennedy, @antoniovilela, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 4e7c227 into cms-sw:master Sep 13, 2024
11 checks passed
@@ -18,6 +18,10 @@ ________________________________________________________________**/

#include <iostream>
#include <string>
#include <RVersion.h>
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 4)
Copy link
Contributor

Choose a reason for hiding this comment

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

@iarspider , this isnot working for ROOT 6.32 IBs. Are you sure this change went in to root 6.32 branch too?

Copy link
Contributor

Choose a reason for hiding this comment

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

I have opened #46006

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.

6 participants