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

From: Christopher Jones <c_jones_at_MIT.EDU>
Date: Tue, 25 Nov 2008 09:16:19 -0500


Hi,

What does the error look like when you try this? Also, in your loop,

>
> for nEvent in tree.pmfDataMD:
> if nEvent >= 1:
> print nEvent

could you find out the type of the iterable "nEvent" (with say type(nEvent) )? Maybe you have to do a little more to tease out the value you want (like indexing), depending on your error message or bug.

Chris Jones
c_jones_at_mit.edu Received on Tue Nov 25 2008 - 15:20:46 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 25 2008 - 17:50:01 CET