Dear Rooters,
I am trying to add a stl container structure like the following into a Root Tree:
std::map<std::string, std::vector<std::map<std::string, double> > >
Please find attached the example where I tried this. I based it on an example that I found in the “tutorials/tree” directroy. Unfortunately my modified example does not save any data in the root tree. Neither when I compile it with the help of the Makefile nor when I load it via ACLIC in ROOT using
.L map_vector.cpp++
My guess is that ROOT does not know what I want it to do and that I have to build a dictionary for the above stl container’s. I tried to search the forum and the manual to find how to build a dictionary for embedded stl containers but I could not find a resource. Could you please help me to get my example to work or point me to a resource where my question has already been answered.
Many thanks,
Lutz
example.tar.gz (1.68 KB)