Hi,
f = new TFile("data.root","UPDATE");
TTree *t; f->GetObject("h11",t);
if (t) {
t->SetName("newname");
f->Write();
}
Should do it.
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of nasim
Sent: Monday, July 17, 2006 1:00 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] changing tree name
Hi,
Is that anyway to change the tree name of a root tuple. I have a roottuple data.root with a tree name h11. Is that any way to change this name?
Thanks in advance,
Nasim
--Received on Mon Jul 17 2006 - 23:00:17 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET