Dear PyROOT experts,
I’m trying to retrieve a double branch from a tree, but I only get a PyDoubleBuffer which cannot be treated as a double in the sense that cannot be, for example, multiplied by a double.
What is a PyDoubleBuffer and eventually how can I retrieve the double linked to this “buffer”?
In ROOT I used to dereference with operator * and I got the object itself, no idea how to translate it to Python.
Thank you in advance,



the buffer represents a double*, i.e. a pointer to double which in C++ may point to a single double or an array and at binding it isn’t known which. Just index it with the appropriate number of elements. E.g. if just a single double, use buf[0].


It’s a single double, so with [0] works fine.
Thank you very much,