-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[hist] Enable chi2 tests for TProfile #19930
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
Conversation
Test Results 21 files 21 suites 3d 22h 21m 37s ⏱️ For more details on these failures, see this check. Results for commit 3c61b5b. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
987e2dc
to
e1a1548
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much! Changes that constrain the the inputs to prevent invalid computations are always welcome.
I would just prefer to return zero in the error case, to make it clear that the value can't be used. But if you prefer falling through to the TH1::Chi2Test()
, I'd be also fine with it.
Good idea! I'll change it to return 0. |
e1a1548
to
2b2cbe5
Compare
The test can only work if the uncertainties are taken into account correctly, so the Chi2Test function was overridden for all TProfile classes. Furthermore, the function will check if the profiles have the correct error option set. See also the discussion in: https://root-forum.cern.ch/t/chi2test-using-tprofile/64156/
2b2cbe5
to
3c61b5b
Compare
Thanks! |
In reaction to this question
https://root-forum.cern.ch/t/chi2test-using-tprofile/64156
Note: I decided to ignore clang-format for the headers, because the indentation would look out of place.