I have a 1D histogram and I need to fit the background. However, I am given two specific ranges for the fit, so basically, some data needs to be left out from the fit. The only way I have managed to do that is by applying two separate fits to the one histogram. Nevertheless, I need them to be simultaneous, i.e. one set of parameters instead of having two sets from the two fits. Does anyone know if that is even possible? I’ve been looking into it for hours and have had no luck, so your help will be greatly appreciated.
Please, do not hesitate in asking for more details if the above does not make sense.
Thanks a lot for your time.