Hi,
I wrote a class that takes two std::vector as arguments. I compile it fine, generate a dictionary for it and then use gSystem to load it in my python script. So far so good. I know that in this case, we are supposed to use the std module from ROOT and provide the class with std.vector(TLorentzVector). I am wondering if it is possible to compile the dictionary (python wrapper) in a different way so that the python manifestation of the class will take python lists of TLorentzVector instead of std.vector(TLorentzVector).
I have even tried using SWIG to do this, but somehow my class would not recognize the TLorentzVectors I get by doing ‘from ROOT import TLorentzVector’. I know that SWIG can do what I require, it just seems like a SWIG wrapper has some problem talking to the python wrappers already in place in ROOT.
Is there any solution to this problem from within ROOT? Or do I need to consider external solutions like SWIG or boost.python?
Cheers,
Michel.