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

[Minuit2] Reduce boilerplate code by removing redundant overloads #16443

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Sep 16, 2024

In the unlikeliy case that users were relying on these functions, they
can easily migrate to the overload that takes MnUserParameterState
without any further overhead just placing some curly brackets. Since
this overload also exists in older ROOT versions, this is a backwards
compatible change on the user side that helps us to keep Minuit 2 code
clean.

A `MnUserParameters` instance implicitly converts to a
`MnUserParameterState`.
@guitargeek guitargeek self-assigned this Sep 16, 2024
@guitargeek guitargeek changed the title [Minuit2] Remove redundant constructors [Minuit2] Reduce boilerplate code by removing redundant overloads Sep 16, 2024
In the unlikeliy case that users were relying on these functions, they
can easily migrate to the overload that takes `MnUserParameterState`
without any further overhead just placing some curly brackets. Since
this overload also exists in older ROOT versions, this is a backwards
compatible change on the user side that helps us to keep Minuit 2 code
clean.
Copy link

Test Results

    13 files      13 suites   3d 3h 4m 31s ⏱️
 3 032 tests  3 031 ✅ 0 💤 1 ❌
33 895 runs  33 894 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit c443317.

@mdessole mdessole self-requested a review September 19, 2024 12:57
@guitargeek guitargeek merged commit 91bb4d7 into root-project:master Sep 19, 2024
15 of 18 checks passed
@guitargeek guitargeek deleted the minuit2_constructors branch September 19, 2024 16:03
cmsbuild added a commit to cms-sw/cmssw that referenced this pull request Oct 3, 2024
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.

2 participants