Root TBranch copy doubt

Can anyone help me how to copy a branch from one tree to another.

I have 2 trees with 26 branches.

I need to add all 26 branches of each tree and fill into new tree with 2 branches.

Thanks

Arun

There is several threads on this forum about this topics. For instance this one:

Do a simple search “copy branch” in the search field of the forum and you will get more.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.