Skip to content

Commit

Permalink
Merge pull request #700 from gundam-organization/main
Browse files Browse the repository at this point in the history
update from wrong branch
  • Loading branch information
nadrino authored Nov 28, 2024
2 parents 83160bb + b5889de commit ebb4b9d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
Binary file modified resources/images/README/title.key
Binary file not shown.
Binary file modified resources/images/README/title/title.001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/images/organisation/logo.key
Binary file not shown.
Binary file modified resources/images/organisation/logo/logo.001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace JointProbability{
void printConfiguration() const;

mutable int verboseLevel{0};
bool throwIfInfLlh{false};
bool throwIfInfLlh{true};
bool allowZeroMcWhenZeroData{true};
bool usePoissonLikelihood{false};
bool BBNoUpdateWeights{false}; // OA 2021 bug reimplementation
Expand Down Expand Up @@ -72,6 +72,11 @@ namespace JointProbability{
double dataVal = samplePair_.data->getHistogram().getBinContentList()[bin_].sumWeights;
double predVal = samplePair_.model->getHistogram().getBinContentList()[bin_].sumWeights;

if( predVal == 0 ){
LogError << bin_ << " bin predicting 0 rate -> llh not defined / inf" << std::endl;
LogError << samplePair_.model->getSummary() << std::endl;
}

{
/// the first time we reach this point, we assume the predMC is at its nominal value
std::lock_guard<std::mutex> g(_mutex_);
Expand Down

0 comments on commit ebb4b9d

Please sign in to comment.