How to get the error of an integral with RooFit?

Hi,
I would like to get the error of an integration.

A skeleton of the code is:
RooAbsReal* EffPDFintegral;
EffPDFintegral = model.createIntegral(RooArgSet(x));
cout << EffPDFintegral->getVal() << endl;

How can I get the error on the value from “getVal()” ?

Thanks,

  • Mauro.