Skip to content

Add tests for analytical TF1 integrals#21059

Closed
swetank18 wants to merge 2 commits intoroot-project:masterfrom
swetank18:add-analytical-integral-tests
Closed

Add tests for analytical TF1 integrals#21059
swetank18 wants to merge 2 commits intoroot-project:masterfrom
swetank18:add-analytical-integral-tests

Conversation

@swetank18
Copy link

Motivation

Recent changes improved robustness of analytical TF1 integrals for edge cases
such as vanishing exponential slopes and invalid parameter domains.

Changes

  • Add test covering analytical exponential integrals with p1 == 0
  • Add test verifying invalid sigma handling for Gaussian integrals

Impact

  • Prevents regressions in analytical integration behavior
  • Improves confidence in TF1 fitting machinery

@swetank18 swetank18 requested a review from hageboeck as a code owner January 28, 2026 18:11
@github-actions
Copy link

Test Results

2 497 tests   2 497 ✅  1h 34m 44s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit 5313756.

const double a = 0.3;
const double b = 1.7;

const double result = f.AnalyticalIntegral(a, b);
Copy link
Member

Choose a reason for hiding this comment

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

This does not compile. You need to include AnalyticalIntegral.h and construct an instance of the class. It would be best to test in a local build if the test compiles and passes.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the clarification.
I’ve updated the tests to use the public TF1::Integral() interface and pushed the fix.

@hageboeck hageboeck self-assigned this Jan 30, 2026
@hageboeck
Copy link
Member

This work continues in #21060

@hageboeck hageboeck closed this Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants