Skip to content

Commit

Permalink
Merge pull request cms-sw#119 from chenmingshui/NoOptimizeCachingNLL_…
Browse files Browse the repository at this point in the history
…ForRooExponentialWithMoreParameters

RooExponential's slope is composed by multipars
  • Loading branch information
gpetruc committed Apr 16, 2014
2 parents 46b53a2 + 9d700ba commit 1023a0e
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 1023a0e

Please sign in to comment.