Error in Parameter settings

When I am trying to run this macro I am getting an error in parameter settings. Can someone help me to fix that? I am attaching the input files and executable.


Here is the macro
mg25yields.cpp (5.8 KB)
It includes these header files:
FitApeak.hh (2.6 KB) Fit2peaks.hh (3.0 KB)
Fit2peaks.cc (7.9 KB) FitApeak.cc (6.3 KB)
Here is the CreateBgHists.root file :calibratedBackgroundHists.root (91.7 KB)
Here are the rootfiles:
https://drive.google.com/file/d/1ZWEnOGk-xOU3KfKQMwa-ecoJS6oI4mn2/view?usp=sharing
https://drive.google.com/file/d/1D7aZXXu5d40XRZc_dPPSujJUQfgJFotb/view?usp=sharing

Hi,

The message seems to indicate you are setting parameter limits with bounds outside the parameter value. I see in your code, Fit2peaks.cc at around line 180 that you are setting few times parameter limits outside the given values. This might explain the problem. Be sure also that when you set the parameter values before fitting are within bounds.

I have tried to run the code, but could not so for missing calibration file. Next time maybe package in a way that it is easier to run and all input files can be easily found

Lorenzo