Skip to content

Commit f1e7d46

Browse files
committed
[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. (cherry picked from commit 66cd6ae)
1 parent 1e835b2 commit f1e7d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roofit/roofitcore/inc/RooPolyVar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RooPolyVar : public RooAbsReal {
3434
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName = nullptr) const override;
3535
double analyticalIntegral(Int_t code, const char *rangeName = nullptr) const override;
3636

37-
RooRealProxy const &x() const { return _x; }
37+
RooAbsReal const &x() const { return _x.arg(); }
3838
RooArgList const &coefList() const { return _coefList; }
3939
int lowestOrder() const { return _lowestOrder; }
4040

0 commit comments

Comments
 (0)