I have a problem accessing members of a variable length array of custom class objects with the TTree::Scan method.
I have attached a macro which reproduces the problem. There are two simple classes, the first ‘subDataClass’ contains a single parameter (int param). The second ‘mainDataClass’ contains a variable length array of subDataClass created as follows:
I have a small function called go() which creates the class and fills dummy values into a TTree. Now, if I use the following:
then all the values are zero, instead of the dummy value.
any help appreciated
System OS X 10.6.6, Root SVN revision 37585, gcc 4.2.1