Skip to content

Commit

Permalink
fix crash on workspaces that didn't have discrete nuisances
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetruc committed Aug 12, 2013
1 parent b2732ab commit 6f9e3b1
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 6f9e3b1

Please sign in to comment.