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)


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);

works, thanks a lot Rene.