createIntegral setrange

Dear Root expects,
I have the following function:

void myClass::initialize(const RooAbsReal& dep, const RooAbsReal& shape) const {
    RooAbsReal* integral = shape.createIntegral(RooArgSet(dep),RooArgSet(),"");

What I want is to calculate integral in some range, for example for range 200-300. I have seen that there is a setRange function for RooRealVar, but since my input is of the form RooAbsReal I am having difficulties in figuring out how to set the range in my function. So I would like to ask for your help on this, please …

Thank you in advance!