Dictionary issue

Hi.

I am writing a class which contains a member as follows:

The class inherits from TObject, and I would like to be able to write the object to a TTree. When writing it to the tree, I got the following error:

Therefore, I added to LinkDef.h:

But now, writing to the tree still produces the following message:

Apparently, the additional line in LinkDef.h was not sufficient. What do I need to do?

Thanks,
Peter

Try with: #pragma link C++ class std::map<TString, TH1D* >+; #pragma link C++ class std::pair<TH1D*, std::map<TString, TH1D* > >+; #pragma link C++ class std::vector<std::pair<TH1D*, std::map<TString, TH1D* > > >+; #pragma link C++ class std::map<TString, std::vector<std::pair<TH1D*, std::map<TString, TH1D* > > > >+;

Hi Wile,

Unfortunately, that did not help – I am still getting the same warning. Any other ideas?

Peter