Skip to content

Commit

Permalink
Check error instead of fSumw2 in tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 30, 2024
1 parent 0961186 commit f27fb36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hist2d/TH1Painter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ class TH1Painter extends THistPainter {
findbin = null;
else if ((pnt_x < grx1 - gapx) || (pnt_x > grx2 + gapx))
findbin = null; // if bars option used check that bar is not match
else if (!this.options.Zero && (histo.getBinContent(findbin+1) === 0) && (!histo.fSumw2 || !histo.fSumw2[findbin+1]))
else if (!this.options.Zero && (histo.getBinContent(findbin+1) === 0) && (histo.getBinError(findbin+1) === 0))
findbin = null; // exclude empty bin if empty bins suppressed
}

Expand Down

0 comments on commit f27fb36

Please sign in to comment.