So following to the linked discussion under Dynamically generated Branch structs without object, I’m wondering if the problem I now face is related.
I have now modified my macro from earlier to include two classes, with one of the classes a “superclass” which includes objects from the other class, and the other class a “subclass” inheriting from TObject. I then add to my tree parent branches referenced to objects from the “superclass”. The resulting structure does indeed nest branches within branches, but I am now having trouble filling the subbraches of these parent branches. After assigning values to the leaves in each subbranch, I first tried Fill() with tree. That didn’t work, so then I tried Fill() for each parent branch. That also didn’t work, so then I tried Fill() on each subbranch. Am I missing something like a SetEntries(), or SetBranchAddress()?