From 116d20fe9304ba665b748bfd6f1bf26cd9d1ad37 Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Sun, 16 Nov 2025 14:46:57 +0100 Subject: [PATCH] [RF] Return reference to actual RooAbsReal in `RooPolyVar::x()` getter Just like in any other getter for the inputs of RooFit functions, the `RooPolyVar::x()` getter should return the underlying RooAbsReal, instead of the internal proxy. Closes #20293. --- roofit/roofitcore/inc/RooPolyVar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roofit/roofitcore/inc/RooPolyVar.h b/roofit/roofitcore/inc/RooPolyVar.h index ff3bd3d88c7d0..4957a573f9693 100644 --- a/roofit/roofitcore/inc/RooPolyVar.h +++ b/roofit/roofitcore/inc/RooPolyVar.h @@ -34,7 +34,7 @@ class RooPolyVar : public RooAbsReal { Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName = nullptr) const override; double analyticalIntegral(Int_t code, const char *rangeName = nullptr) const override; - RooRealProxy const &x() const { return _x; } + RooAbsReal const &x() const { return _x.arg(); } RooArgList const &coefList() const { return _coefList; } int lowestOrder() const { return _lowestOrder; }