Re: AW: AW: PyROOT: Getting boolean array (branch) out of tree

From: <WLavrijsen_at_lbl.gov>
Date: Tue, 25 Nov 2008 13:55:25 -0800


Hi,

> I'm not sure how to extract this information out of the C++ array with
> Python. Maybe Wim would know...

unfortunately, double-arrays are currently not handled. You'd have to define a C++ type with accessor functions and install that using SetBranchAddress.

See the staff.py example under $ROOTSYS/tutorials/pyroot and then add the accessor functions to the struct.

Best regards,

           Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Tue Nov 25 2008 - 22:54:30 CET

This archive was generated by hypermail 2.2.0 : Wed Nov 26 2008 - 11:50:02 CET