Skip to content

Commit

Permalink
Merge pull request cms-sw#136 from nucleosynthesis/nckw-fix-signles-a…
Browse files Browse the repository at this point in the history
…lgo-discrete-parameters

Will only affect cards with discrete nuisances.
  • Loading branch information
adavidzh committed Sep 2, 2014
2 parents 2d7ed6c + 1aa8445 commit 509fc20
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/CascadeMinimizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,18 @@ are freely floating. We should cut them down to find which ones are
bool ret=true;
std::vector<std::vector<bool>> contIndex;
// start from simplest scan, this is the full scan if runShortCombinations is off
bool discretesHaveChanged = multipleMinimize(reallyCleanParameters,ret,minimumNLL,verbose,cascade,0,contIndex);
//bool discretesHaveChanged =
multipleMinimize(reallyCleanParameters,ret,minimumNLL,verbose,cascade,0,contIndex);

if (simnll) simnll->clearZeroPoint();

utils::setAllConstant(frozen,false);

if (discretesHaveChanged) {
minimizer_.reset(new RooMinimizerOpt(nll_));
improve(verbose, cascade);
}
//if (discretesHaveChanged) {
// Run one last fully floating fit to maintain RooFitResult
minimizer_.reset(new RooMinimizerOpt(nll_));
improve(verbose, cascade);
//}
minimumNLL = nll_.getVal();
return ret;
}
Expand Down

0 comments on commit 509fc20

Please sign in to comment.