Hello Rooters,
I am trying to fill a root tree with an array of structs that I my data consists of.
I don’t know wether what I am doing is right. If have constructed the attached example from what I have learned reading the users guide on Trees.
In the write example I am not sure wether the branch is created in the right way. Since I don’t have a feeling for what the TTree::Fill() Method is doing I have some questions to this: In attached example will the Method fill the tree with all MaxHits Entries of the array. Or will it fill it with only the first entry of the array. Or will it fill it with the first nbrOfCurrentHits entries of the array? The last is the wanted situation. If the attached example is not doing what I want, how do I have to change it?
The more general question that I have is: Can the goal, that I am trying to reach, be archived using Root Trees?
Thank you,
Lutz
treetest.c (2.19 KB)