Write info in root file


My thought:
I write many root files (and other users too) with different cuts/info and latter I forget what cuts/info I have used in a particular file. Also, it is not practical to write cuts/info in a text file for all root files, especially if there are many many files.
Therefore, is’t it useful to implement a function in TFile class which write those cuts/info into root files and latter that can be printed out by simple command like:

TFile *file = new TFile("test.root")
cout << file->GetInfo() << endl;

OR, is there already some thing like this which I am not aware of?

Thanks, :slight_smile:

What’s wrong with just dumping a TObjString to your files?