Skip to content

Commit

Permalink
override getParameters() method (#903)
Browse files Browse the repository at this point in the history
Co-authored-by: Aliya Nigamova <[email protected]>
  • Loading branch information
anigamova and Aliya Nigamova authored Feb 22, 2024
1 parent ec1fa76 commit 805a3fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions interface/CachingNLL.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() ;
Expand Down
8 changes: 8 additions & 0 deletions src/CachingNLL.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,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;
Expand Down

0 comments on commit 805a3fd

Please sign in to comment.