Cannot access bool array of an TTree in PyROOT

Hi,

I have a bool array in my TTree, and tried to access it in PyROOT, and it failed.

Is bool array supported in PyROOT? What is the proper way to access bool array of an TTree in pyROOT?

–Shuwei

Shuwei,

which version of ROOT are you using? Python does not support bool arrays, but in more recent versions of ROOT, there is a mapping of bool* through a char (i.e. byte) array, which works on most platforms.

Cheers,
Wim

Hi Wim,

The version I tried was ROOT-5.28.00g. I just tried 5.33.02 and bool array is supported in PyROOT of that version. Thanks.

–Shuwei