Following the example with “Event” class in “Tree” chapter of the user guide, i included tree istances of my class in a tree.
You can see the output of tree.Print() in the first attachment and the definition of my “GenericDAQBoard” class in the second attachment.
Inside the class, i have a variable lenght array:
Int_t* iValue; //nData
According to the manual, i can plot all the elements of this array simply using:
tree.Draw(“TDC1.iValue”)
But in this way i get only the first element of the array each entry. In fact i get the same histogram of:
tree.Draw(“TDC1.iValue[0]”)
while if i do:
tree.Draw(“TDC1.iValue[1]”, “TDC1.nData>=2”)
(or any other following element)
i get empty histograms.
But tree is correctly filled with values also in the next elements of these arrays, as u can check with the output of tree.Show (included in the third attachment)