I need some help on how to pass a python list to a ROOT macro as a std::vector. There are way of using boost::python but it seems the c++ code need to be compiled. I’m hoping to pass it in the following way, for example:
//// ROOT macro
void test(vector &in)
//… python script
list = [“a”, “b”, “c”, “d”]
os.system("root -b -q ‘test(list)’ ")
The python script as is will not work. Any hint on how to do it in this style is appreciated.