Hello root users.
I am trying to use 26 parameters in my fitting funciton.
Most of them are fixed.
I am trying to run a script in cint.
////////////////////////////////////////////////////////////////////////
/// Relevant snippet:
////////////////////////////////////////////////////////////////////////
gMinuit = new TMinuit(50);
// I describe 26 parameter template somwere else.
// It uses my own precompiled functions.
// It works perfectly with 23 parameters.
// Here I add one more normalized gaussian (3 parameters)
// which makes it 23 + 3 = 26 > 25.
TF1* Template = GetDataAllF(“Template”);
// Print it out to be sure.
// No problem sprinting out.
Template->Print();
// Here is the problem.
hist -> Fit( Template,“N”,"",4.6,5.0);
///////////////////////////////////////////////////////////////////////////////////////////
It gives me:
MINUIT USER ERROR. TOO MANY VARIABLE PARAMETERS.
Warning in TH1F::Fit: Abnormal termination of minimization.
FCN=nan FROM MIGRAD STATUS=CALL LIMIT 5014 CALLS 5015 TOTAL
EDM=nan STRATEGY= 1 NO ERROR MATRIX
EXT PARAMETER CURRENT GUESS STEP FIRST
NO. NAME VALUE ERROR SIZE DERIVATIVE
1 p0 nan 1.00000e+01 nan nan
2 p1 8.84000e-01 fixed
3 p2 5.10650e+00 fixed
4 p3 4.09400e-02 fixed
5 p4 5.71400e-01 fixed
6 p5 5.11695e+00 fixed
7 p6 1.58800e-02 fixed
8 p7 nan 1.00000e+01 nan nan
9 p8 9.10000e-01 fixed
10 p9 5.06100e+00 fixed
11 p10 2.43000e-02 fixed
12 p11 3.52600e-01 fixed
13 p12 5.10200e+00 fixed
14 p13 5.00000e-03 fixed
15 p14 3.58000e-01 fixed
16 p15 5.12560e+00 fixed
17 p16 1.84400e-02 fixed
18 p17 nan 1.00000e+01 nan nan
19 p18 1.11500e+01 fixed
20 p19 5.28080e+00 fixed
21 p20 nan 1.00000e+01 nan nan
22 p21 nan 1.00000e+01 nan nan
23 p22 nan 1.00000e+01 nan nan
24 p23 nan 1.00000e+01 nan nan
25 p24 nan 3.00000e-03 nan nan
Fit failed. The last parameter is missing in the Minuit printout. .
It looks like it did not understand my TMinuit(50);
Is it possible to make it work?
How should I treat it if I would like to precompile my code.
Great thanks.
Boris.