Simply change your line
Float_t min,max
to
Double_t min,max
Rene Brun
Pavol Strizenec wrote:
>
> Dear Rooters,
>
> can somebody expalin me, what is wrong in the SetParLimits call,
> when I can not read limits back ?
> Here is my session (machine is Linux 2.0.36 with egcs-1.0.3):
> ---------------------------------------------------------
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 2.21/01 14 January 1999 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
> CINT/ROOT C/C++ Interpreter version 5.13.83, Dec 2 1998
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] TF1 *fl = new TF1("fl","pol3(0)",0.,4.)
> root [1] fl->SetParameters(0.,1.,2.,3.)
> root [2] fl->SetParLimits(2,0.,4.)
> root [3] Float_t min,max
> root [4] fl->GetParLimits(2,min,max)
> root [5] max
> (Float_t)0.000000000000e+00
> root [6] fl->SetParLimits(3,0.,-1.)
> root [7] fl->GetParLimits(3,min,max)
> root [8] max
> (Float_t)0.000000000000e+00
> root [9]
> -------------------------------------------------------
>
> Thanks,
>
> Pavol
>
> **************************************
> Pavol Strizenec strizene@mppmu.mpg.de
> **************************************