[ROOT] TGraph->GetPoint(int,double&,double&) error ??

From: Drs. D. G. Geurts (dennis@nat.vu.nl)
Date: Wed Mar 14 2001 - 11:42:37 MET


Dear ROOTers,

I have a question regarding TGraph;

I've made a graph containing 4096 datapoints, it draws perfectly, can be fitted, etc.

However, when I want to Get a Point on the Graph with GetPoint(int, double&,double&)
it returns data as expected BUT ONLY UP TO SIZE/2 !!


Doe anybody have a clue as to why this happen?


Below I've added a transcript of a ROOT session
(the x-values in the graph range from -1000 to +1000)
Thanks inadvance !!


root [27] graphfp.Dump();

fNpoints                 4096        Number of points
*fX                      -1000       [fNpoints] array of X points
*fY                      2.7376      [fNpoints] array of Y points
*fFunctions              ->5457f0    Pointer to list of functions (fits and user)
*fHistogram              ->54b2f0    Pointer to histogram used for drawing axis
fMinimum                 -1111       Minimum value for plotting along y
fMaximum                 -1111       Maximum value for plotting along y
fName                    ->54587c    object identifier
fName.*fData             Graph
fTitle                   ->545884    object title
fTitle.*fData
fUniqueID                0           object unique identifier
fBits                    50332680    bit field status word
fLineColor               1           line color
fLineStyle               1           line style
fLineWidth               1           line width
fFillColor               1           fill area color
fFillStyle               1001        fill area style
fMarkerColor             1           Marker color index
fMarkerStyle             1           Marker style
fMarkerSize              1           Marker size

root [28] graphfp.GetPoint(2048,min,max);
root [29]min
(double)0.00000000000000000e+000
root [30]
root [31] graphfp.GetPoint(2047,min,max);
root [32] min
(double)(-4.88281250000000000e-001)
root [33]



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:39 MET