RooRealVar value in a different range

I’m doing a ML fit in a given range [0,10] and I know that If I ask
to my code to give me the value of a RooRealVar Nsig in that range I have to do
But If I want the value of Nsig in a different range (in a subrange of my fit) what do I have to do?
Thanks Valentina