Skip to content

[RF] Optimizations to avoid taking logarithms of Gaussian constraints#21325

Draft
guitargeek wants to merge 1 commit intoroot-project:masterfrom
guitargeek:log_optimizations
Draft

[RF] Optimizations to avoid taking logarithms of Gaussian constraints#21325
guitargeek wants to merge 1 commit intoroot-project:masterfrom
guitargeek:log_optimizations

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

No description provided.

@guitargeek guitargeek self-assigned this Feb 19, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 19, 2026

Test Results

    22 files      22 suites   3d 5h 43m 4s ⏱️
 3 796 tests  3 792 ✅ 0 💤 4 ❌
76 375 runs  76 371 ✅ 0 💤 4 ❌

For more details on these failures, see this check.

Results for commit 60813d8.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek force-pushed the log_optimizations branch 2 times, most recently from ea59471 to 60813d8 Compare February 20, 2026 00:14
Large likelihood fits (e.g. in CMS and ATLAS) often contain many
Gaussian constraint terms. In the standard evaluation, these incur
unnecessary overhead by computing the PDF value via `exp(...)` only to
immediately take the logarithm in the constraint term.

This commit introduces a log-space optimization that avoids the
redundant exp -> log roundtrip.

We need this optimization because it makes a difference for CMS, and
they have also implemented something like this in the custom CMS Combine
likelihood classes. If we want them to gradually move to "vanilla"
RooFit, we need at least the same optimizations.
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.

1 participant