Doh - thank you very much.
Now I’m having a different problem. I want to expand my fitting function from 11 to 14 fitting parameters:
TF1 *func = new TF1(“func”,fitfBW1,0.6,2.2,14);
func->SetParameters(0.767,0.151,700.,-500.,1.E5, 1E5,24.,0.782,0.1,1.2 ,0.,1650.,130.,1.);
The TF1 seems to define OK, but whenever I try to use the function, I get error messages like
Users/sklein/STARstuff/twoprong/./dipionBW1.C:153:7: error: no matching member
function for call to 'SetParameters’
/opt/local/libexec/root6/include/root/TF1.h:443:21: note: candidate function not
viable: requires at most 11 arguments, but 14 were provided
virtual void SetParameters(Double_t p0,Double_t p1,Double_t p2=0,…
with a similar error for
Am I missing something, or is this a fundamental limitation of ROOT? I am aware how difficult it is to fit to a function with 14 parameters, but it is easier for me to fix, if needed some parameters with func->FixParameter(10,0.), rather than having to hard-code masses, etc. into my fit function. I could not find documentation on the maximum number of parameters in a TF1; if this exists, it would be nice to document it.
Thanks for your help.