hello,
I defined the following named script (hl.C):
#include <TMath.h>
#include <TF1.h>
Double_t myfunction(Double_t *x,Double_t *par) { Double_t arg = 0;
Double_t arg = x[0]/par[1];
Double_t result = par[0]*TMath::Exp(-arg);
return result;
}
void hl() {
TF1* decay = new TF1("decay","myfunction",0,10,2);
decay->SetParameters(10,1);
decay->Draw("AL");
}
The script won't compile:
root [0] .L hl.C+
Info in <TUnixSystem::ACLiC>: creating shared library
/home/rmason/Teaching/ES1002/Notes/Intersession_10/DatingEarth/scripts/./hl_C.so
In file included from
/home/rmason/Teaching/ES1002/Notes/Intersession_10/DatingEarth/scripts/./hl_C_ACLiC_dict.h:33,
from /home/rmason/Teaching/ES1002/Notes/Intersession_10/DatingEarth/scripts/./hl_C_ACLiC_dict.cxx:16:
ROOT::Math::ParamFunctorHandler<ParentFunctor, Func>::operator()(double*, double*) [with ParentFunctor = ROOT::Math::ParamFunctor, Func = const char*]'
I can't see what I did wrong.
Thanks for any help.
Roger
ROOT 5.26/00b (branches/v5-26-00-patches_at_32288, Apr 23 2010, 09:32:00 on linuxx8664gcc) Received on Mon May 17 2010 - 21:29:14 CEST
This archive was generated by hypermail 2.2.0 : Mon May 17 2010 - 23:50:02 CEST