Skip to content

[ntuple] Initial integration with TBrowser #18889

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jblomer
Copy link
Contributor

@jblomer jblomer commented May 28, 2025

Adds minimal browsing capability for RNTuple with TBrowser (browsing already works with RBrowser). Introduces the more general capability for foreign objects (not inherited from TObject) to implement custom browsing. This is done similar to a custom merge function, by a special method signature that is picked up by the dictionary generation and registered in TClass. This capability is then used by the RNTuple anchor object.

As a result, TBrowser can show the structure of an RNTuple. Note that RNTuple only uses the abstract TBrowser interface, which is part of the core library.

In a follow-up PR,histogramming data is to be implemented. The idea is that the graphical browser will register an RNTuple visitor for the drawing, so that the GUI will depend on the RNTuple library but not vice versa.

Icons in the tree view panel of the browser need to be fixed, too.

Result after PR:
image

@jblomer jblomer requested review from hahnjo, silverweed and enirolf May 28, 2025 15:29
@jblomer jblomer self-assigned this May 28, 2025
Copy link

github-actions bot commented May 28, 2025

Test Results

    20 files      20 suites   3d 14h 49m 5s ⏱️
 3 016 tests  3 015 ✅ 0 💤 1 ❌
58 726 runs  58 725 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 09f8bad.

♻️ This comment has been updated with latest results.

jblomer added 2 commits June 20, 2025 14:07
Similar to ROOT::MergeFunc_t, the function pointer for the Browse()
function will allow custom browsing for objects that don't derive from
TObject.
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