Dear Rootsketeers,
I am using ROOT v4.00/08 and I have a problem with function TTree::CloneTree.
I have a TChain of TTree with TBranch containing collection of object so they are stored within the TBranchElement class. I follow the CloneTree example and I manage to get a new tree identical to the first tree in the chain, so for every cloned TBranchElement it register in variable fMaximum the max number of object in the branches of first tree.
But in general this is not the correct limit of all other trees so when I want to use the whole cloned tree i get an error like:
“Incorrect size read for the container in jet_ The size read is 250 when the maximum is 200 The size is reset to 0 for this entry 1146”
How can I clone the tree with correct maximum?
Thanks a lot for your help,
Federico