Hello,
I have this function defined in tmp.C:
#include "Riostream.h"
#include "TH1.h"
#include "TF1.h"
#include "TLegend.h"
#include "TCanvas.h"
// Fitting. Based on FittingDemo.C
// Quadratic background function
Double_t background(Double_t *x, Double_t *par) {
return par[0] + par[1]*x[0] + par[2]*x[0]*x[0]; }
When I try to execute it I get:
root [1] .x tmp.C
.x tmp.C
Limitation: Function can not be defined in a command line or a tempfile
You need to write it in a source file FILE:tmp.C LINE:11
*** Interpreter error recovered ***
As the comment says, it is a fragment taken from FittingDemo.C (which runs perfectly, and which I am trying to adapt to my needs).
Can anyone help?
Thanks,
Roger Mason Received on Wed Sep 28 2005 - 17:50:13 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET