Use a 1D slice of a 2D PDF as a new PDF

Is it possible to use a 1D slice of a 2D PDF as a new PDF? Specifically I’d like to define a PDF which selects slices along 1 dimension of a 2D RooHistPdf based on the value of a RooRealVar which corresponds to the other axis. I know you can make a projection in one axis, but I don’t want to integrate over the whole pdf in one of the dimensions.

Any help would be much appreciated,

Hugh