Add a branch to an existing tree

Hi everybody

I am trying to add a branch to an existing tree and save it in a new root file.
Here it is the code.
Somehow I get zero entries. Can someone help me?
Thanks
mp
treeparentNew.root (5.28 KB)
treefriendtest.C (1.73 KB)

.
treefriendtest.C (1.83 KB)

Thanks, is working!
:smiley:
mp