From 239cafe11e41a862c35e1f9d0e120cc2a73a3654 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Fri, 22 Mar 2024 16:19:45 +0100 Subject: [PATCH] Clarify wording Thanks vepadulano! Co-authored-by: Vincenzo Eduardo Padulano --- hist/hist/src/TH1.cxx | 2 +- hist/hist/src/THnBase.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hist/hist/src/TH1.cxx b/hist/hist/src/TH1.cxx index 7857a27d9a04e..b3e4ee62dee0c 100644 --- a/hist/hist/src/TH1.cxx +++ b/hist/hist/src/TH1.cxx @@ -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]; diff --git a/hist/hist/src/THnBase.cxx b/hist/hist/src/THnBase.cxx index 54ec0bd636d26..94b5c96fb8f1a 100644 --- a/hist/hist/src/THnBase.cxx +++ b/hist/hist/src/THnBase.cxx @@ -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.; }