Unable to store TFile with a title

hi all,

to avoid mess in my work I’m trying to store a TFile with the title set to reasonable info.

so I do (histFile is of type TFile)

histFile.SetTitle(“blabla”);
histFile.Write();
histFile.Close();

the problem is when I open the file again the title is always “ntuple.root”.

thanks for help, Asen

You should specify the title of your file when you create it with the argument ftitle of

TFile(const char *fname, Option_t *option="", const char *ftitle="", Int_t compress=1);
Rene

works, thanks a lot Rene.