Rootpy and multidimensional array branches

Hello,

I realise that rootpy is not an official part of ROOT, however this place still seems like the best place to ask.

Is it possible to create branches with multidimensional arrays in rootpy?

Also, is variable length (for 1D arrays) working in rootpy? I’ve tried it, but it seems that the array is always fixed to the initial size, even in the samples.

I just wanted to make a creation of simple trees easier in pyroot, but I am not sure if I made a good choice…

Thanks!

Hi @LeWhoo

Here’s how you would do it with PyROOT:

The variable length of one of the dimensions is provided by another branch.

Cheers,
Enric

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.