Hi
I have a series of ROOT files that each contain 5 different TTress. When I try merging them the new TFile only contains one of my TTrees. I have tried following the instructions here but its only for 1 Tree.
I can access the different Tree if I use the AddFriend command but I can’t seem to merge them:
TChain ch(“BS”);
ch.Add(“bb_Jpsimu6mu4X_.root");
TChain ch1(“JPSI”);
ch1.Add("bb_Jpsimu6mu4X_.root”);
ch.AddFriend(“JPSI”);
ch.Draw… etc
Is there a way to merge the files to contain all the Trees?
Thanks
Alastair