I’m trying to get the StatBox of my fit to only show me the free parameters. From the documentation I understand that gStyle->SetOptFit(1111) should have that effect as opposed to gStyle->SetOptFit(1112) which would include all the parameters. However, changing SetOptFit in the attached code has no effect.
root [0] .x test4MVV_alpha_shabason_gwjd.c
warning: Failed to call `test4MVV_alpha_shabason_gwjd()` to execute the macro.
Add this function or rename the macro. Falling back to `.L`.
Sorry for the late reply. I only realized that this question got feedback today. You ask ‘what’s wrong?’ My understanding is that by setting gStyle->SetOptFit(1111), the variables p0, p1, p2 and p3 would not be visible in the stat box, and yet they nonetheless are.
That’s exactly the problem. The “fixed parameters” should NOT appear in the box if: gStyle->SetOptFit(1111);
Note: It works properly for histograms’ fits.