This PyROOT thread may not be the relevant place, but I am seeking for an advice from experienced experts in both ROOT and Python…
I have a custom data product object (namely C++ class inherited from TObject) stored in a TTree branch.
I would like to convert this into a numpy structured array to benefit scientific tools in Python.
For a simple data types (built-in types or 1 dimensional std::vector of such types), root_numpy seems to work perfectly fine.
But my trial on custom data product has failed.
What is a good way to do this?
I can write my own API, but I was wondering if there is a magic tool OR if there is a recommended way of writing such an API (planning to just write C API using numpy C API support, as I am not sure Cython works with C++ custom data product object…)
Thank you for your time and advice!!!