From 04ab6c434f782ee199660dd7d9b4f94f033bf63f Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 25 Sep 2013 17:52:06 +0200 Subject: [PATCH] properly flag lack of support for analytic integration over reduced range --- interface/RooBernsteinFast.h | 6 ++++++ 1 file changed, 6 insertions(+) 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; }