Tree help

Hi I’ve written a short program which fills a tree all seems to work up until I fill the tree…
I can’t see what I am doing wrong I’ve attached my whole program any help will be greatly appreciated

For your information I fill the tree in line 366,
and ExperimentDump() and EventDump() are both debugging tools and there outputs seem to be reasonable.

thanks you very much Maki
tree_buggy.C (9.91 KB)


Most likely the problem is that you do not compile this script. In order to do I/O on a class this class need to be compiled. Hence instead of.x tree_buggy.Cuse.x tree_buggy.C+