Re: Accessing TFx parameters by name

From: Rene BRUN <brun_at_mail.cern.ch>
Date: Wed, 9 Mar 2005 22:21:36 +0100 (MET)


Eric,

Use TFormula::GetParNumber(const char* name) eg P1G->GetParError(P1G->GetParNumber("Yield"))

I do not want to double the number of functions in TFormula/TF1/TF2 in providing a call by name and number for every function.

Rene Brun

On Wed, 9 Mar 2005, Eric
Vaandering wrote:

> Rene BRUN wrote:
> > Eric,
> >
> > Instead of:
> > cout << P1G -> GetParError("Yield");
> > do
> > cout << P1G -> GetParError(2);
> >
> > see TF1 doc : http://root.cern.ch/root/htmldoc/TF1.html
>
> I know how to get around the problem, I was asking if its possible in a future
> version to add the first method since it would be useful to not have to
> remember the numbers of parameters and is clearer when reading code.
>
> Thanks,
>
> Eric
>
>
>
Received on Wed Mar 09 2005 - 22:26:06 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET