Merging of two Branches of a tree

I have 2 branches of the tree t1 as follows
t1.Branch(“E1”,&E1,“E1/I”);
t1.Branch(“E2”,&E2,“E2/I”);
I want to add another branch in this tree which is formed by merging the two given branches.

Please help me to solve this.

What do you mean by “merging”?

I want to fill one branch’s content to another branch i.e. adding two branches and I want to put this branch in the same tree.

With RDataFrame’s Snapshot (tutorial), this is quite easy.