Combined fitting

Hi

I am trying to go through the tutorial combinedFit.C
http://root.cern.ch/root/html/tutorials/fit/combinedFit.C.html

but I get the following error when I attempt to run the code:

Error: Can't call Fitter::FitFCN(6,globalChi2,0,dataB.Size()+dataSB.Size(),true) in current scope combinedFit.C:115: Possible candidates are... Error: class,struct,union or type Fitter not defined combinedFit.C:115: *** Interpreter error recovered ***

I couldnt see what the issue was if anyone could assist me that would be much appreciated. I am currently running version 5.28

cheers

Mark

You MUST use it as an ACLiC precompiled macro (i.e. “root [0] .x combinedFit.C++”).

Great thanks for that…

could you tell me why that was necessary?

cheers

Mark

Apparently, it faces a CINT limitation.

Hi,
thanks again for that. The macro seems to run fine but I get the message:

popping up when I run this is there a way to get Minuit2 to work?

cheers

Mark

Try “root-config --features” and see if the output contains “minuit2”. If not, you need to rebuild your ROOT from scratch again, adding the configure “–enable-minuit2” option.