Which limit would you like to compute ? CLs ? You could use for example the asymptotic formulae to compute it. In RooStats you can do it with the AsymptoticCalculator (using from example the StandardHypoTestInvDemo.C macro).
In order to use it you need to build a workspace, with your model, which I presume, is a simple number counting model, i.e. a Poissson(nobs | nexp).
You can see some examples in the RooStats tutorials, twiki.cern.ch/twiki/bin/view/Ro … isson_Coun