Dear ROOT users,
I have some output ROOT file from my analysis which has a few trees inside of it:
ParentTree
DaughterBranch
SubBranch1
SubBranch2
…
SubBranchN
Where for example subbranch1 is the momentum of the particle. I need to add another SubBranch to the DaughterBranch e.g. “mySpecialBranch” with a value I am reading from a CSV file. It is not possible to do this upon creation of the ROOT file it has to be done after the fact.
- Is this approach possible, or can you only modify an existing branch? How do I approach this.
- If this approach is not possible can anyone suggest another way? The new branch with the special values have to be inside of the ParentTree.