Vector<float> in TTree

Hello all!

I try to save a vector in a TTree.
I managed for a vector via outTree_.Branch(“name”, &pointer)
but when doing so for the float vector, it does not appear at all in the TTree.

Is there anything I should take care of?
Thanks in advance, L

Hi,

Both should work the same (in compiled code you may have to do gROOT->ProcessLine("#include ") for the vector in order to load its dictionary).

Cheers,
Philippe.