Re: [ROOT] TVirtualFitter::GetParameter error in compiled macro

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jul 16 2001 - 19:18:15 MEST


Hi Rosario,

The second parameter of TFitter::Getparameter is a char*. In output it contains
the name of the parameter. In your case, you call

  par1=minuit->GetParameter(0,"t1",finit1,ferrt1,ft1ll,ft1hl);
  par2=minuit->GetParameter(1,"t2",finit2,ferrt2,ft2ll,ft2hl);

This overwrites your program.

Rene Brun

Rosario Turrisi wrote:
> 
> Dear Rooters,
> I have a simple macro that I attach here together with an
> input data file.
> When the macro is executed "interpreted",
> i.e.:   root>.L Helidebug.C
>         root>Helidebug()
> I get the right result.
> When I compile it, i.e.:
> root>.L Helidebug.C++
> root>Helidebug()
> (no errors or warnings during compilation)
> I get a segmentation violation at the call of
> minuit->GetParameter.
> I run in the standard Linux environment (6.2, gcc 2.95.2) and Root
> is v3.00.06.
> Any hint very welcome...
> Cheers,
>         Rosario
> --
> Rosario Turrisi - *** ALICE & NA57 Collaboration ***
> Dipartimento di Fisica e INFN - Padova
> Tel.:+39-049-8277106 - Fax: +39-049-8762641
>   " Nothing is as stupid as intelligence
>     proud of itself. "
>         Mikhail Bakounin
> 
>   --------------------------------------------------------------------------------
> 
>                      Name: Helidebug.C
>    Helidebug.C       Type: X Bitmap (image/x-xbitmap)
>                  Encoding: 7bit
> 
>                       Name: helidist.inp
>    helidist.inp       Type: Plain Text (text/plain)
>                   Encoding: 7bit



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