Skip to content

Commit

Permalink
Clarify wording
Browse files Browse the repository at this point in the history
Thanks vepadulano!

Co-authored-by: Vincenzo Eduardo Padulano <v.e.padulano@gmail.com>
  • Loading branch information
2 people authored and dpiparo committed Mar 23, 2024
1 parent 5db7764 commit 239cafe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hist/hist/src/TH1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@ Double_t TH1::ComputeIntegral(Bool_t onlyPositive)

// - Normalize integral to 1
if (fIntegral[nbins] == 0 ) {
Error("ComputeIntegral", "Integral = 0, no hits in regular bins (non over/underflow).");
Error("ComputeIntegral", "Integral = 0, no hits in histogram bins (excluding over/underflow).");
return 0;
}
for (Int_t bin=1; bin <= nbins; ++bin) fIntegral[bin] /= fIntegral[nbins];
Expand Down
2 changes: 1 addition & 1 deletion hist/hist/src/THnBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ Double_t THnBase::ComputeIntegral()

// check sum of weights
if (fIntegral[GetNbins()] == 0.) {
Error("ComputeIntegral", "Integral = 0, no hits in regular bins (non over/underflow).");
Error("ComputeIntegral", "Integral = 0, no hits in histogram bins (excluding over/underflow).");
fIntegral.clear();
return 0.;
}
Expand Down

0 comments on commit 239cafe

Please sign in to comment.