Help with filling a Tree branch with a structure of vectors

Dear support team,

I’ve been trying without success to fill a branch of a tree with a structure of vectors.
Essentially I would like to achieve what’s discribed in this presentation (p17-18) but with vectors instead of arrays. Is there a way to do that?

An example of the structure I would like to have is the following:

        struct lepton
            vector <Double_t> px;
            vector <Double_t> py;
            vector <Double_t> pz;
            vector <Double_t> E;

Thank you for your time!

Best regards,

ROOT Version: ROOT 6.18/04
CentOS (lxplus)

I guess @pcanal can help you with this question.

WelI, I found another way to do what I needed.
I think you can close the ticket!