-
I want to create a TTree with a certain structure so a class can be read later with ROOT.
What if I wanted branch1 to belong to one top-level branch and branch2 to belong to a different top-level branch instead of how currently they will be both a top level branch inside |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I didn't add a way to do that because I didn't see what it would be useful for. Nesting TBranch objects doesn't have anything to do with how nested the data are. Also, it would be difficult to implement. Since the WritableTree object needs to be mutable, to |
Beta Was this translation helpful? Give feedback.
I didn't add a way to do that because I didn't see what it would be useful for. Nesting TBranch objects doesn't have anything to do with how nested the data are.
Also, it would be difficult to implement. Since the WritableTree object needs to be mutable, to
extend
it iteratively over a large dataset, it's implemented as a template with values that can change (like the array of pointers to TBaskets). That template is general enough to include a flat list of TBranches, but not a nested list. (It's the metadata that gets nested, but the metadata was implemented as a template, and it would be hard to generalize the template.)