Skip to content

Commit

Permalink
Merge pull request cms-sw#21 from gpetruc/fix-discrete-nuis-crash
Browse files Browse the repository at this point in the history
fix crash on workspaces that didn't have discrete nuisances
  • Loading branch information
gpetruc committed Aug 12, 2013
2 parents 75a155a + 6f9e3b1 commit 15c1ee2
Show file tree
Hide file tree
Showing 2 changed files with 1,976 additions and 351 deletions.
7 changes: 5 additions & 2 deletions src/Combine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ void Combine::addDiscreteNuisances(RooWorkspace *w){
//}

CascadeMinimizerGlobalConfigs::O().pdfCategories = RooArgList();
TIterator *dp = discreteParameters->createIterator();
while (RooAbsArg *arg = (RooAbsArg*)dp->Next()) (CascadeMinimizerGlobalConfigs::O().pdfCategories).add(*arg);

if (discreteParameters != 0) {
TIterator *dp = discreteParameters->createIterator();
while (RooAbsArg *arg = (RooAbsArg*)dp->Next()) (CascadeMinimizerGlobalConfigs::O().pdfCategories).add(*arg);
}
}
Loading

0 comments on commit 15c1ee2

Please sign in to comment.