Skip to content

[hist] Implement initial RProfile#22588

Draft
hahnjo wants to merge 7 commits into
root-project:masterfrom
hahnjo:hist-profile
Draft

[hist] Implement initial RProfile#22588
hahnjo wants to merge 7 commits into
root-project:masterfrom
hahnjo:hist-profile

Conversation

@hahnjo

@hahnjo hahnjo commented Jun 12, 2026

Copy link
Copy Markdown
Member

It builds on RHistEngine with an additional variable.

@hahnjo hahnjo self-assigned this Jun 12, 2026
@hahnjo hahnjo added in:Hist test coverage Run the test code coverage workflow on this PR labels Jun 12, 2026
\warning This is part of the %ROOT 7 prototype! It will change without notice. It might trigger earthquakes.
Feedback is welcome!
*/
class RProfile final {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Imho this should be called something more specific to histograms (RHistProfile? RProfileHist?), as "profile" is a generic term that could be overloaded (e.g. a timing profile) and since it's directly in the ROOT namespace we might want to avoid that confusion.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

hm, I think the term "profile" is well established in HEP to not be confusing in the context of a data analysis framework. For example, historically the class is called TProfile, Boost.Histogram calls it make_profile, and for YODA it's BinnedProfile / Profile1D etc.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm more concerned about ambiguities in internal usage by developers than about confusion from users (RProfile might be used as an internal class in some other context). Nothing that some namespaces can't solve of course, but might be worth thinking about.

@github-actions

Copy link
Copy Markdown

Test Results

    20 files      20 suites   3d 2h 0m 23s ⏱️
 3 864 tests  3 864 ✅ 0 💤 0 ❌
69 062 runs  69 062 ✅ 0 💤 0 ❌

Results for commit 6c4093a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:Hist test coverage Run the test code coverage workflow on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants