I was wondering if there there is a facility in place to store infomation about a histogram, i.e. what weights were applied when it was filled and the such. I know that I can just generate a wrapper class and add my field into it but it would be nice if there was some way that I could store a simple data structure in the histogram itself. I realize that their might be problems with this when it comes to saving a root file and that might be why it does not exist.
For those familiar with QT I think there is a similar system in place to store information.
myhisto.GetListOfFunctions()->Add(new TNamed("weights","x-section,Luminosity,HeavyFlavor"));
and then later
TNamed *w = (TNamed*)myhisto.GetListOfFunctions()->FindObject("weights");
cout << "The weights used in this histogram were: " << w->GetTitle() << endl;
Rene