Skip to content

Commit

Permalink
RooExponential's slope is composed by multipars
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingshui Chen committed Apr 16, 2014
1 parent 46b53a2 commit 9d700ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CachingNLL.cc
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ cacheutils::makeCachingPdf(RooAbsReal *pdf, const RooArgSet *obs) {
} else if (gaussNll && typeid(*pdf) == typeid(RooGaussian)) {
return new CachingGaussPdf(pdf, obs);
} else if (gaussNll && typeid(*pdf) == typeid(RooExponential)) {
std::auto_ptr<RooArgSet> params(pdf->getParameters(obs));
if(params->getSize()!=1) {return new CachingPdf(pdf,obs);}
return new CachingExpoPdf(pdf, obs);
} else if (gaussNll && typeid(*pdf) == typeid(RooPower)) {
return new CachingPowerPdf(pdf, obs);
Expand Down

0 comments on commit 9d700ba

Please sign in to comment.