How to read data from TNonSplitBrowsable

There is a TBranchElement under the TTree in the Root file. How to read the data in the TNonSplitBrowsable under the TBranchElement?

Hello @zhaodajun ,

the answer depends on what you mean with “read”: if you want to programmatically read the values, you can do it as usual using e.g. ROOT: ROOT::RDataFrame Class Reference , or in any case writing a small program in C++ or Python that opens and reads the entries of a TTree. See also Trees - ROOT and our tutorials.

For more specific help, it would be useful if you could share the input file, as well as what code you tried and an explanation of what didn’t work.

Cheers,
Enrico

Attach the output of: your_tree->Print();

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.