I have two array data files. I want to add weight function to these two array which I ploted see attached file. what I am trying to do now is use the weight function below, for two data set and select the points between 8<r <9 in each data then plot the histogram. how can I do so.

# weight function:
def W(r):
    Rsn = 5.4 
    return np.exp(-r/Rsn)

thank you very much