Re: GetPoint() in TGraphErrors

Rene Brun (Rene.Brun@cern.ch)
Mon, 19 Jan 1998 14:48:50 +0100


Pascal Perrodo wrote:

> Hi,
>
> I use the ROOT version 1.03/08 24 November 1997.
>
> I call the function
>
> GetPoint() for a TGraphErrors using the example code :
>
> Float_t xi,yi;
> graph_emiss_a_vda_fine0->GetPoint(1,&xi,&yi);
> printf("xi,yi = %f %f \n",xi,yi);
>
> and I get the following message :
>
> Error: Can't call TGraphErrors::GetPoint() in current scope
> FILE:/users/atlas/perrodo/perso/aleph/btau/analysis/root/./study_histos.C
> LINE:87
> *** Interpreter error recovered ***
>
> How is it possible to make this function work ?

TGraph::GetPoint(Int_t point, Float_t &x, Float_t &y)
Simply, change your statement to:
graph_emiss_a_vda_fine()->GetPoint(1,xi,yi);

Rene Brun