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

[RF] Refactor RooProdPdf for more concise code #17535

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

guitargeek
Copy link
Contributor

While trying to address the several GitHub issues related to
integrals of RooProdPdfs, I saw some opportunities to refactor the code
to avoid duplication, especially in RooProdPdf::processProductTerm().

Besides refactoring to avoid code repetition, this PR includes commits that remove unnecessary commented-out lines with std::cout, and to introduce proper datastructures to move data around the RooProdPdf helper functions.

While trying to address the several GitHub issues related to
integrals of RooProdPdfs, I saw some opportunities to refactor the code
to avoid duplication, especially in `RooProdPdf::processProductTerm()`.
Introduce a single data structure to the RooProdPdf to carry around
factorized term info. That makes it easier to understand, navigate, and
refactor the code.
Copy link

github-actions bot commented Jan 27, 2025

Test Results

    18 files      18 suites   4d 19h 35m 25s ⏱️
 2 683 tests  2 683 ✅ 0 💤 0 ❌
46 598 runs  46 598 ✅ 0 💤 0 ❌

Results for commit e024a43.

♻️ This comment has been updated with latest results.

@dpiparo dpiparo self-requested a review January 28, 2025 05:33
@guitargeek guitargeek merged commit e6368d1 into root-project:master Jan 28, 2025
20 of 21 checks passed
@guitargeek guitargeek deleted the prodpdf_1 branch January 28, 2025 10:35
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