Hi @IP25 ,
This is really not a ROOT issue, ctypes do not support arythmetic operators:
>>> from ctypes import c_double
>>> a = c_double(2.0)
>>> b = c_double(2.0)
>>> a + b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'c_double' and 'c_double'
>>> b - a
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for -: 'c_double' and 'c_double'
>>> a * b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for *: 'c_double' and 'c_double'
I guess if you really need to use these wrappers, you could access their value attribute. But this is really not the way you should be using ctypes. See their docs for more info.
Cheers,
Vincenzo