Delete a TTree

Hello all.

Simple question. I have a ntuple with 4 TTrees. I want to delete one of them.

Any ideas?

Many thanks,
Stefanos

Hi,

if with ntuple you mean TNtuple then I don’t understand your question: a TNtuple derives from TTree so how can it have four TTrees?

If you mean a ROOT file then the easiest is to copy the tree into a new file, see tutorials/tree/copytree*.C.

Cheers, Axel.