Help to get the background right from the function in TF1

Maybe your background can be better modeled with an “erfc” function, like in this old post.