Problem cloning a branch casted to a tree


Im trying to use the CloneTree function to copy the structure of a branch. The branch is first casted to a tree just for this purpose. But… it fails (a huge error message, starting as below). Isnt this possible? Can I do it some other way?


*** Break *** segmentation violation
Generating stack trace…
0x02988ff9 in TBranch::Refresh(TBranch*) + 0x17 from /usr/local/src/root/lib/
0x02a7dd87 in from /usr/local/src/root/lib/

What does it mean “casting a branch to a Tree”? This does not make sense.
If you want to copy a subset of a Tree to another Tree see tutorials $ROOTSYS/tutorials/tree/copy*
Next time yous end a mail, please send more information, in particular a snapshot of your code.