diff --git a/interface/CachingNLL.h b/interface/CachingNLL.h index 6468bc1de4b..63ff92c58d3 100644 --- a/interface/CachingNLL.h +++ b/interface/CachingNLL.h @@ -169,6 +169,7 @@ class CachingSimNLL : public RooAbsReal { void setData(const RooAbsData &data) ; virtual RooArgSet* getObservables(const RooArgSet* depList, Bool_t valueOnly = kTRUE) const ; virtual RooArgSet* getParameters(const RooArgSet* depList, Bool_t stripDisconnected = kTRUE) const ; + virtual bool getParameters(const RooArgSet* depList, RooArgSet& outputSet, bool stripDisconnected=true) const; void splitWithWeights(const RooAbsData &data, const RooAbsCategory& splitCat, Bool_t createEmptyDataSets) ; static void setNoDeepLogEvalError(bool noDeep) { noDeepLEE_ = noDeep; } void setZeroPoint() ; diff --git a/src/CachingNLL.cc b/src/CachingNLL.cc index ea9cb831869..04f2bedf2c3 100644 --- a/src/CachingNLL.cc +++ b/src/CachingNLL.cc @@ -1285,6 +1285,14 @@ cacheutils::CachingSimNLL::getParameters(const RooArgSet* depList, Bool_t stripD return ret; } +bool cacheutils::CachingSimNLL::getParameters(const RooArgSet* depList, + RooArgSet& outputSet, + bool stripDisconnected) const { + RooArgSet tempList = *getParameters(depList); + outputSet.add(tempList); + return true; +} + void cacheutils::CachingSimNLL::setMaskConstraints(bool flag) { double nllBefore = evaluate(); maskConstraints_ = flag;