Hi,
I’ve got a question concerning stl::vectors which are stored in a tree. I managed to create a TTree, where one branch is a vector. The result looks like this:
root [39] t->Scan()
***********************************
* Row * Instance * v *
***********************************
* 0 * 0 * 0.1 *
* 0 * 1 * 0.2 *
* 0 * 2 * 0.23 *
* 1 * 0 * 0.1 *
* 1 * 1 * 0.2 *
* 1 * 2 * 0.23 *
* 1 * 3 * 0.42 *
***********************************
Surprisingly not the vector class, but a list of the contents is stored in the tree. Because of this thigs like t->Draw(“v.size()”) are not possible.
Is there a way to get the length of the vector for each event, or event better to store the lenght of the vector in a separate branch when filling the tree?
Cheers, J.