Std maps in PyROOT

[quote=“wlav”]Laurence,

[quote=“lspiller”]It does have access to the std::map because the following code works:[/quote]no; each std::map instantiation is its own class and should thus carry its own dictionary. The fact that int, int works says nothing about other instantiations.

As for the error that you see, did you first try:ROOT.gInterpreter.GenerateDictionary("map<TString,int>","map,TString.h")
(note the comma instead of semi-colon) before the code that you posted? If so, wipe out all AutoDict* files in your local directory and try again (but of course with ‘;’ instead of ‘,’).

HTH,
Wim[/quote]
I tried running the the command you suggested but got the following error message:

>>> ROOT.gInterpreter.GenerateDictionary("map<TString,int>","map,TString.h") In file included from /tmp/rootcint_6ZobIs.h:3, from /tmp/tmLmLu_cint.cxx:1: /data/lspiller/AutoDict_map_TString_int_.cxx:1:25: error: map,TString.h: No such file or directory Error: external preprocessing failed. :0: !!!Removing /data/lspiller/AutoDict_map_TString_int__cxx_ACLiC_dict.cxx /data/lspiller/AutoDict_map_TString_int__cxx_ACLiC_dict.h !!! Error: /cvmfs/atlas.cern.ch/repo/sw/software/i686-slc5-gcc43-opt/17.2.3/sw/lcg/app/releases/ROOT/5.30.05/i686-slc5-gcc43-opt/root/bin/rootcint: error loading headers... Error in <ACLiC>: Dictionary generation failed! AutoDict_map_TString_int_.cxx:1:25: error: map,TString.h: No such file or directory 2