ROOT 5.23/01 (trunk@27444, Feb 13 2009, 03:16:58 on linux)[/code]
The fitting of my example is only for reproducing the problem, since actual code of our analysis software is too long to put here.
We are using fitting of histograms during event reconstruction of experiment. The result of fitting is ok.
We are using v5.18 as our collaboration’s standard, and we are thinking to upgrade to v5.22. (v5.22 is the latest production version.)
It is rather annoying that we have this warning for milions of events we are analyzing.
(Maybe, we should also check if we are using fitting correctly.)
So, I would like to know how to suppress the warning.
I’m having the same issue. Basically what I do is that:
for(int i = 0 ;i< N ;i++){
TH1F* histo = (TH1F*) myFile->Get(Form(“histo%i”,i)); // Retrieve histo #i
histo->Fit(“MyFunction”) // Fit it
}
where MyFunction whose parameters have limits.
I get the tedious warning :
MINUIT WARNING IN PARAMETR
============== VARIABLE7 IS AT ITS LOWER ALLOWED LIMIT.
I tried to call the mnexcm command but I don’t know how to call it.
I tried to add that at the beggining of my code but nothing changed :
Int_t ierr=0;
TMinuit t; // I assumed I had to create an instance of TMinuit before calling gMinuit … but I don’t know
gMinuit->mnexcm(“SET NOWarnings”,0,0,ierr);