Hi Peter, Yes, a consequence of too much data hiding. I have added two new constructors to TGraph: ( now in CVS) TGraph(const TVector &vx, const TVector &vy); TGraph(const TVectorD &vx, const TVectorD &vy); The number of points in the graph is the minimum of vx and vy. Rene Brun Peter Skensved wrote: > > Hi, > Is there a simple way to access the data in a TVector as an array of > floats ? I'd like to be able to do a TGraph of two vectors without > having to create two float arrays and copy the data. > > Or would it be possible to get a TGraph( int, TVector, TVector ) in > a future version of ROOT ? > > peter > ---- > > Peter Skensved Email : peter@SNO.Phy.QueensU.CA > Dept. of Physics, Phone: (613) 533-2676 > Queen's University, Fax: (613) 533-6813 > Kingston, Ontario, > Canada
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:10 MET