Clone tree in a file and add other branches - Entries duplicate!

Hi all,

I want to add a tree in a file, adding other branches.
I did it with clone, then looping on all entries to fill the branches.
It works for the new branches, the problem is that I have double of the entries in the other branches derived from cloning.

How can I solve?

Thanks a lot

Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

You can use TTree::CloneTree(0) to copy only the schema of the tree without any events (zero events).

Thank you for your response. I tried also that solution but I had the same problem. In the end I’ve solved the problem. For people who will have the same issue: I cloned the tree, created the new branches and I filled only the branches in the loop.

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