created functions to get signal and background hists
splitting input output in a set of functions