Re: [ROOT] Deleting branch from root file

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Apr 11 2003 - 18:10:36 MEST


Hi H.Gerd,

There is no API to do what you want.
Although it is technically possible, I would like to discourage this approach.
see : http://root.cern.ch/root/htmldoc/TTree.html
 section "Adding a branch to an existing Tree"

You can make a copy of your Tree removing one or more branches.
See examples in $ROOTSYS/tutorials/copytree.C, copytree3.C

Rene Brun


"H.-Gerd Rosarius" wrote:
> 
> Hello Rooters,
> 
> is it possible to delete a single branch including
> all it's containing data from an existing root file?
> 
> As far as I read it is possible with a tree but not with
> a branch. Maybe I missed something and I should rtfm more
> thoroughly. :o)
> 
> Greetings,
> 
>    H.-Gerd Rosarius
> 
> Tech-Stuff:
> Using Root 3.05/03 built from source on a Debian Linux box.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET