Dear all,
concerning ttree constructions available, I am considering the possibility to configure Branch using STL containers (mainly vector and array).
In case I have one of the following container:
- vector container;
- array <T,n> container;
I compared cases of type ttree.branch(“branchname”, &container, “myVar[n]/T”) in which each row is provided with n data of type T, with the case of type ttree.branch(“branchname”, &container, “x1/T:x2/T … :xn/T”) in which each row is filled with n columns corresponding to n elements of container.
In addition I wanted to compare with a construction of the type: tree.Branch( branchname, STLcollection, buffsize, splitlevel);
If I write code like this: ttree.Branch(“branchname”, &container) it does not split and it is equal to ttree.branch(“branchname”, &container, “myVar[n]/T”). Here splitlevel = 1 by default. It does not change even if I try split>1
I would like to know how to perform splitting like ttree.branch(“branchname”, &container, “x1/T:x2/T … :xn/T”) with construction like tree.Branch( branchname, STLcollection, buffsize, splitlevel)
Thank you all in advance
Best Regards