Hi
How could I convert a vector (STL) object into a TVector (ROOT) object in a c++/root program? Is there are more elegant way that by just copying element by element from one type of object to the other one?
Thxs,
Cristian
Hi
How could I convert a vector (STL) object into a TVector (ROOT) object in a c++/root program? Is there are more elegant way that by just copying element by element from one type of object to the other one?
Thxs,
Cristian
Hi,
this should work std::vector<float> svf; ...
TVector<float> tvf(svf.size(), &svf[0]);
Cheers, Axel.
Thanks a lot!