Skip to content

Commit

Permalink
fix globalScale in overflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetruc committed Aug 14, 2013
1 parent 5debcf3 commit 086350b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TH1Keys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ void TH1Keys::FillH1() const
cache_ = pdf.createHistogram(GetName(), *x_);
if (cache_->Integral()) cache_->Scale(1.0/cache_->Integral());
cache_->Scale(dataset_->sumEntries() * globalScale_);
cache_->SetBinContent(0, underflow_);
cache_->SetBinContent(cache_->GetNbinsX()+1, overflow_);
cache_->SetBinContent(0, underflow_ * globalScale_);
cache_->SetBinContent(cache_->GetNbinsX()+1, overflow_ * globalScale_);
RooMsgService::instance().setGlobalKillBelow(gKill);
}
isCacheGood_ = true;
Expand Down

0 comments on commit 086350b

Please sign in to comment.