Function->Eval ?

From: Saleem, Muhammad <saleem_at_slac.stanford.edu>
Date: Fri, 23 Jan 2009 18:04:03 -0800


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 - 03:04:20 CET

This archive was generated by hypermail 2.2.0 : Sat Jan 24 2009 - 11:50:01 CET