diff --git a/roofit/roofitcore/inc/RooBinSamplingPdf.h b/roofit/roofitcore/inc/RooBinSamplingPdf.h index 65e8a649be8e8..b9523007b6064 100644 --- a/roofit/roofitcore/inc/RooBinSamplingPdf.h +++ b/roofit/roofitcore/inc/RooBinSamplingPdf.h @@ -60,6 +60,10 @@ class RooBinSamplingPdf : public RooAbsPdf { double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override { return _pdf->analyticalIntegral(code, rangeName); } + /// Forwards to the PDF's implementation. + std::unique_ptr createExpectedEventsFunc(const RooArgSet *nset) const override { + return _pdf->createExpectedEventsFunc(nset); + } /// Forwards to the PDF's implementation. bool selfNormalized() const override { return true; }