Hello,
I am curious why uncommenting line 33 in the attached script makes the tree formula work as expected.
Notice that in event 2 njet is three and that jetfoo[2]/njet should come out as 2.17 but the formula calculates 0.
>From the brief documentation on GetNdata() I expected that all it does
is tell me how many instances are available. It seems to have some
other side effect though.
What is the right way to get a formula to play nice? It seems like a hack to call GetNdata() just to get it to work.
I have root 5.20 on linux.
Tim
-- http://tim.jottit.com/Received on Mon Oct 19 2009 - 17:46:13 CEST
- application/download attachment: treeformulaetest.py
This archive was generated by hypermail 2.2.0 : Mon Oct 19 2009 - 23:50:02 CEST