Hello everyone and thanks four your attention , I am new with root and i am trying to read two trees in the same Ntuple at the same time but i don’t know how do it.
I didn’t find information about that, but I would like to know the process to get read both trees in parallel.
I don’t think it’s possible to have trees inside ntuples. Can you describe more precisely what you have and what you want?
Also, do you know how to read one tree? If so, the solution could be simple to explain and understand, but again, depends on the answer above.
Hello @dastudillo, sorry you’re right, it’s actually two trees in the same nupple, what I’m trying to do is read the two trees at the same time, so that I can manipulate takes the variables at the same time.
Attach outputs from “tree_1->Print();” and “tree_2->Print();”.
I’m afraid it’s not clear what you are trying to achieve.
In principle, there exist two possibilities:
to “add” / “merge” entries from both trees (so that they are treated as a single “combined” tree with the number of entries equal to the sum of numbers of entries from both of them), you may want: TChain
to analyze some variable(s) from the first tree versus some variable(s) from the second tree, you may want: TTree::AddFriend