Sub-folders in a tree

Dear experts,
I have a tree
TTree *outputtree = new TTree (“outputtree”, “outputtree”)
I would like to make 4 sub-folders (or sub-directories, whatever is called) in an existing tree. Could you please let me know how I can create them and add them to the tree.
Thanks,


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


You can create branches, not sub-folders, it is explained in the Trees Chapter of the manual. I would also suggest to start with the ROOT Primer and the tree tutorials

Thanks a lot

1 Like