Re: [ROOT] get rid of a branch

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Jan 19 2002 - 09:56:43 MET


Hi Axel,

Use TTree::CloneTree to copy a subset of a Tree to a new Tree.
Only active branches are copied. I implemented this feature
in version 3.02

Rene Brun

On Fri, 18 Jan 2002, Axel Naumann wrote:

> Hi,
> 
> I create a TTree, fill 10 entries, realize that one branch does not contain
> valid data, and want to continue filling the other branches, saving only the
> other branches to a file.
> 
> How? There is no TTree::RemoveBranch, nor does TTree::Clone to a new TTree
> help, as it copies the whole tree. Any idea?
> 
> Cheers, Axel.
> _____
> 
> Axel Naumann, Kath Universiteit Nijmegen / NIKHEF, The Netherlands
> Experiment: D0 / Fermilab, USA. Phone: +1 (630) 840 8595
> http://www-d0.fnal.gov/nikhef
> 
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET