diff --git a/interface/RooBernsteinFast.h b/interface/RooBernsteinFast.h index f3bdf4a5fd942..c0c40e0297536 100644 --- a/interface/RooBernsteinFast.h +++ b/interface/RooBernsteinFast.h @@ -71,6 +71,12 @@ template class RooBernsteinFast : public RooAbsPdf { Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const { + + // No analytical calculation available (yet) of integrals over subranges (as for standard RooBernstein) + if (rangeName && strlen(rangeName)) { + return 0 ; + } + if (matchArgs(allVars, analVars, _x)) return 1; return 0; }