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.

@jblomer jblomer requested review from hahnjo, silverweed and enirolf May 28, 2025 15:29
@jblomer jblomer self-assigned this May 28, 2025
@@ -233,6 +233,7 @@ friend class TStreamerInfo;
IsAGlobalFunc_t fGlobalIsA; //pointer to a global IsA function.
mutable std::atomic<TMethodCall*> fIsAMethod; //!saved info to call a IsA member function

ROOT::BrowseFunc_t fBrowse; //pointer to a functionen implementing the TBrowser Browse() call.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: function

@@ -1145,7 +1145,7 @@ TClass::TClass() :
fInstanceCount(0), fOnHeap(0),
fCheckSum(0), fCollectionProxy(nullptr), fClassVersion(0), fClassInfo(nullptr),
fTypeInfo(nullptr), fShowMembers(nullptr),
fStreamer(nullptr), fIsA(nullptr), fGlobalIsA(nullptr), fIsAMethod(nullptr),
fStreamer(nullptr), fIsA(nullptr), fGlobalIsA(nullptr), fIsAMethod(nullptr), fBrowse(nullptr),
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point it would be nice to inline all these initializations...

@@ -94,7 +94,7 @@ namespace Internal {
fImplFileName(nullptr), fImplFileLine(0),
fIsA(isa),
fVersion(1),
fMerge(nullptr),fResetAfterMerge(nullptr),fNew(nullptr),fNewArray(nullptr),fDelete(nullptr),fDeleteArray(nullptr),fDestructor(nullptr), fDirAutoAdd(nullptr), fStreamer(nullptr),
fBrowse(nullptr),fMerge(nullptr),fResetAfterMerge(nullptr),fNew(nullptr),fNewArray(nullptr),fDelete(nullptr),fDeleteArray(nullptr),fDestructor(nullptr), fDirAutoAdd(nullptr), fStreamer(nullptr),
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point it would be nice to inline all these initializations...

and these as well

Copy link

Test Results

    19 files      19 suites   3d 19h 34m 28s ⏱️
 2 785 tests  2 784 ✅ 0 💤 1 ❌
51 413 runs  51 412 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 74927a3.

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