-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[ROOT6] Fix needed for root master to explicitly pass RooCmdArg #36903
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36903/28194
|
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master. It involves the following packages:
@cmsbuild, @santocch can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c63559/22263/summary.html Comparison SummarySummary:
|
+1 |
merge |
Hi @smuzaffar, @perrotta , thanks for fixing this! But just to let you know, this is not the correct fix, even though it probably doesn't matter in this dead code. I removed the implicit constructor of RooCmdArg from a string on purpose to avoid the creation of invalid command arguments, which I'll explain in the release notes: root-project/root#9833. Now you found a way to still create the invalid command argument, that was not really the plan (thanks for nudging me to mention it in the release notes like this 😄) Rather, the compiler error hints to an error in the code, which you now reverted back back to a runtime error that will show up like this:
Probably not worth to change this again is this old class, just wanted to leave the paper trail here. The correct fix to also avoid runtime errors in the log would just be to remove the |
@guitargeek @smuzaffar apologize for having merged too quickly what looked to me like an innocuous fix. @guitargeek , then what you suggest to implement instead is the following? fit_result = ModelPDF->fitTo(*Data); If so, any of us should better commit this one line fix to clean up the release (even me, provided you confirm that this is actually the correct fix). |
Thanks at lot 👍 |
+1 |
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 be automatically merged. |
This is needed for ROOT master branch based IBs (CMSSW_12_3_ROOT6_X). Root change root-project/root@b553d38#diff-6534a03c2b46be206e3b5193cdad1ae96349308681da35a5b5cc54183aedcee3 was done e to make the implicit construction of
RooCmdArg
from just a string impossible . The change here explicitly useRooCmdArg("r", 0)
to fix the ROOT6 build issue ( cms-sw/cmsdist#7601 (comment) )