Copying subsets of TTrees

I would like to, after making cuts, write only a few variables to a TTree, but I don’t want to include the variables I cut on. So I need them to remain active in the mother tree so I can make the cuts, but don’t want them written to the clone tree. Does anyone know how to do this? It doesn’t look like any of the three examples in the tutorial section cover this. It’d be kind of a hybrid between copytree2.C and copytree3.C.

Thanks,
Alex.

Simply make two steps:
-clone your original Tree tree1 into tree2. Only active branches will be selected in the cloned Tree.
-Deactivate the branches in tree2 and clone
tree2 into tree3. Delete tree2 and fill only tree3.

Rene