fullana
October 25, 2012, 10:31pm
1
Dear all,
I am trying to create a vector of TMatrix* in python. So far I have succeed doing that for a vector<TVectorD*> by creating the dictionary:
gInterpreter.GenerateDictionary(‘vector<TVectorD*>’,‘TVectorT.h;vector’)
in the python script, then I can make
MyVector = std.vector(‘TVectorD*’)()
and it seems to work fine. However I am trying to do the same for a vector<TMatrix*>:
gInterpreter.GenerateDictionary(‘vector<TMatrixD*>’,‘TMatrixT.h;vector’)
but when I try to generate the dictionary it gives an error (below): Any hint of what could be going on? please do not hesitate to ask me any further information you may need.
Error: class,struct,union or type TMatrixD not defined /Users/efullana/Software/root/cint/cint/lib/prec_stl/memory:37:
Error: class,struct,union or type TMatrixD not defined /Users/efullana/Software/root/cint/cint/lib/prec_stl/memory:38:
Error: class,struct,union or type TMatrixD not defined /Users/efullana/Software/root/cint/cint/lib/prec_stl/memory:43:
Error: class,struct,union or type TMatrixD not defined /Users/efullana/Software/root/cint/cint/lib/prec_stl/memory:44:
Error: class,struct,union or type TMatrixD not defined /Users/efullana/Software/root/cint/cint/lib/prec_stl/memory:45:
Error: class,struct,union or type TMatrixD not defined /Users/efullana/Software/root/cint/cint/lib/prec_stl/vector:51:
Error: class,struct,union or type TMatrixD not defined /Users/efullana/Software/root/cint/cint/lib/prec_stl/vector:444:
Warning: Error occurred during reading source files
Note: Link requested for undefined class vector<TMatrixD*,allocator<TMatrixD*> >::value_type (ignore this message) :0:
Warning: Error occurred during dictionary source generation
!!!Removing /Users/efullana/MyAnalysis/PlotScripts/MC11b/IDS_Unfolding/AutoDict_vector_TMatrixD___cxx_ACLiC_dict.cxx /Users/efullana/MyAnalysis/PlotScripts/MC11b/IDS_Unfolding/AutoDict_vector_TMatrixD___cxx_ACLiC_dict.h !!!
Error: /Users/efullana/Software/root/bin/rootcint: error loading headers…
Error in : Dictionary generation failed!
wlav
October 26, 2012, 5:30am
2
Hi,
remove all (if any) local AutoDictTMatrixD files and then use TMatrixD.h instead of TMatrixT.h for the include:gInterpreter.GenerateDictionary('vector<TMatrixD*>','TMatrixD.h;vector')
HTH,
Wim
Thanks a lot, it works great now.