Re: [ROOT] TGraphSmooth

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Mar 20 2002 - 11:11:32 MET


Hi Federico,

Impossible to come with a diagnostic with only these few lines.
Could you provide a short example that we can use to understand your problem?

Rene Brun

Federico Roncarolo wrote:
> 
> Hello,
> 
> I'm trying to interpolate a graph with TGraphSmooth,
> I'm working in linux, my makefile looks to compile properly the file .cxx
> in which I put:
> 
>         .....
>         .....
>         TGraph *grq1 = new TGraph(ncycles,vtime,vmax);// properly drawn
> 
>         TGraph *grout=new TGraph(ncycles+12);
>         TGraphSmooth *gs1 = new TGraphSmooth();
> 
>         Double_t xout[12];
>         Int_t add;
>         Double_t dt=90e-3;
>         Double_t t0=784e-3;
> 
>         for(add=0;add<12;add++) xout[add]=t0+add*dt;
> 
>         grout = gs1->Approx(grq1,"linear",ncycles+12,xout,0,2);
>         //the program clearly
>         //stops at this line
>         .....
>         .....
> 
> but while executing I get the message
> 
>         pure virtual method called
>         Abort (core dumped)
> 
> what's wrong?
> 
> Thanks a lot,
> Federico
> 
> __________________________________________________
> Federico Roncarolo     federico.roncarolo@cern.ch
>                             alchemist@infinito.it
> CERN SL/BI 865 1-A27
> 
> Tel:
> +41.(0)22.76.75611      Work
> +41.(0)79.6982190       GSM
> +33.(0)4.50.40.82.67    Home
> __________________________________________________



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET