Set PDF normalization range in RooFit

Something like

RooGenericPdf window("window", "(x > -5)*(x < 5) * function", RooArgset(x, function))