From 9d700babddfa2ff4cb31cbc9318ed27209723c5b Mon Sep 17 00:00:00 2001 From: Mingshui Chen Date: Wed, 16 Apr 2014 20:46:33 +0200 Subject: [PATCH] RooExponential's slope is composed by multipars --- src/CachingNLL.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CachingNLL.cc b/src/CachingNLL.cc index f2f1d3d14e022..bf1c0f580d98f 100644 --- a/src/CachingNLL.cc +++ b/src/CachingNLL.cc @@ -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 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);