Hi @Buzinowski,
I believe what is missing in your code is to specify the length of your array branch in TTree::Branch
. Please have a look at this post:
where there is an example of how to define branches that are numpy arrays, write them and read them back from Python.
Cheers,
Enric