Skip to content

Commit

Permalink
Merge pull request cms-sw#23 from gpetruc/master
Browse files Browse the repository at this point in the history
fix overflows in TH1Keys
  • Loading branch information
gpetruc committed Aug 14, 2013
2 parents dbd7bec + 086350b commit b7ea8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TH1Keys.cc
Expand Up @@ -165,9 +165,9 @@ void TH1Keys::FillH1() const
RooNDKeysPdf pdf("","",*x_,*dataset_,options_,rho_);
cache_ = pdf.createHistogram(GetName(), *x_);
if (cache_->Integral()) cache_->Scale(1.0/cache_->Integral());
cache_->SetBinContent(0, underflow_);
cache_->SetBinContent(cache_->GetNbinsX()+1, overflow_);
cache_->Scale(dataset_->sumEntries() * globalScale_);
cache_->SetBinContent(0, underflow_ * globalScale_);
cache_->SetBinContent(cache_->GetNbinsX()+1, overflow_ * globalScale_);
RooMsgService::instance().setGlobalKillBelow(gKill);
}
isCacheGood_ = true;
Expand Down

0 comments on commit b7ea8b3

Please sign in to comment.