Re: Function->Eval ?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Sat, 24 Jan 2009 07:34:10 +0100


Could you send the shortest possible RUNNING script (and data file) reproducing your problem?

Rene

Saleem, Muhammad wrote:
> Hi,
>
> I have a fit function saved in a file when I try to use this from th efile I get problem. I am not able to find why this is happening.
>
> Here is what I do :
>
> TFile* FitFile = new TFile("file1.root");
>
> TF1 *fit_Function = (TF1*)FitFile->Get("fit_Function"); //Fit_Function is saved in the file1.root
>
> Now I use this as:
>
> double value *= fit_Function->Eval(variable);
>
> The error I get is the following:
>
> error: `fit_Function' was not declared in this scope
>
> any help please!
>
> thank you in advance.
>
> ---saleem
>
>
Received on Sat Jan 24 2009 - 07:34:21 CET

This archive was generated by hypermail 2.2.0 : Mon Jan 26 2009 - 11:50:01 CET