[ROOT] changing Title of a directory

From: Robert Feuerbach (feuerbac@ernest.phys.cmu.edu)
Date: Mon Oct 08 2001 - 22:21:14 MEST


Hi,

I'd like to change the Title of a directory that has already been
created. I seem to only be able to get the original title. Is there anyway
around this? (Yes, it seems trivial but the title of a directory is being
used -- however improperly -- to keep track of a little information for
me.)

Using ROOT 3.02/00 on a LinuxRH7.1 machine.

Thanks,
Rob

Trivial test script:

{
  TFile *file = new TFile("testthis.root","CREATE");
  TDirectory *my_dir = file->mkdir("my_dir","The first title");
  my_dir->SetTitle("Try another title");
  my_dir->Save();
  file->Write();
  file->Close();
}

-- 
/***************************************************
 * Robert Feuerbach   feuerbac@ernest.phys.cmu.edu *
 * CMU Physics Department           (412) 268-2772 *
 * Pittsburgh, PA 15213        FAX: (412) 681-0648 *
 ***************************************************/



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET