From b1f5cf7ee11b2cbf31e0ab8b6bfc3144e3944621 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Wed, 15 Oct 2025 18:09:18 +0200 Subject: [PATCH] [RF] disable analytical integrals also with linear interpolation Fixes https://github.com/root-project/root/issues/20116 --- roofit/roofitcore/src/RooHistPdf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roofit/roofitcore/src/RooHistPdf.cxx b/roofit/roofitcore/src/RooHistPdf.cxx index 678a1e86c8086..7fed2e82bd4ac 100644 --- a/roofit/roofitcore/src/RooHistPdf.cxx +++ b/roofit/roofitcore/src/RooHistPdf.cxx @@ -319,7 +319,7 @@ Int_t RooHistPdf::getAnalyticalIntegral(RooArgSet& allVars, // Disable partial analytical integrals if interpolation is used, and we // integrate over sub-ranges, but leave them enabled when we integrate over // the full range of one or several variables - if (intOrder > 1 && !(code & 1)) { + if (intOrder > 0 && !(code & 1)) { analVars.removeAll(); return 0; }