Access the a point in a TGraph

Hi,

I have a TGraphAsymmErrors and I can access things like

g1->GetErrorYhigh(i) fine, where i = bin.

I want to to the same for the value of the point but I can’t seem to find a similar method like

g1->GetX(i) that returns a double, all I can find is a funtion that returns an array, I don’t want this.

Please tell me what the function is called that returns the double and accepts the bin number.

Thanks, Claire

Claire,

g->GetX() returns a pointer to the array of X values of the points.
To get the X value for point J, do

double xj = g->GetX()[J];
Rene

Thanks!

Claire