Hello, I am a bit lost about how to store into a TTree a vector of array and how to access it in order to plot the data inside each array.
Basically, I have a set of array of 8192 unsigned short.
So I store each array in a vector defined as
Than I define a TTree with a branch like that
TTree *t = new TTree("t","t");
t->Branch("A","std::vector <unsigned short>","&(A))
I am not sure if it is the good way to define the branch but if so, how to access to the data contained in A in order to draw them?
I would like to do something like
and get an histogram of 8192 bins relative to the 10th box of the vector A.
I hope it is pretty clear. If not, please tell me; I will try to explain better.