48 printf(
"Return TTree size %ld\n", (
long) (tr ? tr->GetTotBytes() : -1));
49 return tr ? tr->GetTotBytes() : -1;
74 if (br && br->GetLeaves())
88 RegisterBrowse(TBranch::Class(), [](std::unique_ptr<RHolder> &
object) -> std::shared_ptr<RElement> {
89 return std::make_shared<TBrElement>(
object);
91 RegisterBrowse(TBranchElement::Class(), [](std::unique_ptr<RHolder> &
object) -> std::shared_ptr<RElement> {
92 return std::make_shared<TBrElement>(
object);
94 RegisterBrowse(TTree::Class(), [](std::unique_ptr<RHolder> &
object) -> std::shared_ptr<RElement> {
95 return std::make_shared<TTreeElement>(
object);
97 RegisterBrowse(TNtuple::Class(), [](std::unique_ptr<RHolder> &
object) -> std::shared_ptr<RElement> {
98 return std::make_shared<TTreeElement>(
object);
TBranchBrowseProvider newTBranchBrowseProvider
Provider of different browsing methods for supported classes.
void RegisterBrowse(const TClass *cl, BrowseFunc_t func)
Access to TObject basic properties for RBrowsable.
std::unique_ptr< RHolder > fObject
static std::unique_ptr< RLevelIter > GetCollectionIter(const TCollection *)
Creates iterator for TCollection object.
Representing TVirtualBranchBrowsable in browsables.
TBrBrowsableElement(std::unique_ptr< RHolder > &br)
std::unique_ptr< RLevelIter > GetChildsIter() override
Create iterator for childs elements if any.
int GetNumChilds() override
Returns number of childs By default creates iterator and iterates over all items.
virtual ~TBrBrowsableElement()=default
Representing TBranch in browsables.
Long64_t GetSize() const override
Size of TObject.
TBrElement(std::unique_ptr< RHolder > &br)
A TTree is a list of TBranches.
Long64_t GetTotalSize(Option_t *option="") const
Return total number of bytes in the branch (including current buffer)
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Representing TTree in browsables.
Long64_t GetSize() const override
Size of TObject.
TTreeElement(std::unique_ptr< RHolder > &br)
A TTree represents a columnar dataset.
TVirtualBranchBrowsable is a base class (not really abstract, but useless by itself) for helper objec...
TList * GetLeaves() const
Return list of leaves. If not set up yet we'll create them.