From e2ce7ffcfa4df10d0963869ca1e6936838504feb Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 5 Mar 2014 17:48:25 +0100 Subject: [PATCH] If running Profile testStat in HybridNew, no loger enforce the first POI of a 1 POI workspace to be positive --- src/HybridNew.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HybridNew.cc b/src/HybridNew.cc index 28240928a0a88..3deb5a5bb7eb6 100644 --- a/src/HybridNew.cc +++ b/src/HybridNew.cc @@ -650,7 +650,8 @@ std::auto_ptr HybridNew::create(RooWorkspace *w, Roo if (testStat_ != "MLZ" && testStat_ != "Profile") r->setMax(rVal); r->setVal(rVal); if (testStat_ == "LHC" || testStat_ == "Profile") { - r->setConstant(false); r->setMin(0); + r->setConstant(false); + if (testStat == "LHC") r->setMin(0); if (workingMode_ == MakeSignificance || workingMode_ == MakeSignificanceTestStatistics) { r->setVal(0); // r->removeMax(); // NO, this is done within the test statistics, and knowing the scale of the variable is useful