The question is quite simple, but the answer may be not…
I’ll explain it with a simple example:
I have a TTree stored in a TFile (attached) and called ‘tree’, which contains a 2D array, called ‘x’.
‘x’ is an array of Float_t of fix sizes in both dimensions, 10 and 10.
If I print ‘tree’ it, I get:
[code]root  tree->Print()
*Tree :tree : tree *
*Entries : 1 : Total = 1268 bytes File Size = 623 *
: : Tree compression factor = 1.67 *
*Br 0 :x : x/F *
*Entries : 1 : Total Size= 942 bytes File Size = 280 *
*Baskets : 1 : Basket Size= 32000 bytes Compression= 1.67 *
Print() tells me that the array is 10 x 10, but I would like to extract this information automatically from a C program, without looking to the stdout.
How do I do this?
It seems quite easy, but I don’t know how to do it and i would be really useful from me.
Thanks in advance.
array.root (5.25 KB)