Lets say that we have a two fits that we are trying to implement. I will assume that you have this version of double gaussian and exp
class.
You really should use this one instead. It includes more sanity checks and allows you to pass iminuit limits as optional.
This means that you don't have to always put (-np.inf, np.inf)
for each limit anymore.
class DoubleGaussian_plus_Exp:
def __init__(self, bins, nC, minuit_limits=None):
self.xMin, self.xMax, self.bin_width, self.x_vals, self.y_vals, self.y_errs = self.Fit_Setup(nC, bins)