Hi, I think this is solved in Producing a TTree with some special branches of other TTrees.
Cheers, Enrico