Skip to content

Commit 58916d2

Browse files
committed
Fix - show non-zero fEntries for TH2/TH3 #320
If not set - use from counted statistic
1 parent 77b759c commit 58916d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/hist/TH3Painter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class TH3Painter extends THistPainter {
131131

132132
res.integral = stat_sum0;
133133

134-
if (histo.fEntries > 1)
134+
if (histo.fEntries > 0)
135135
res.entries = histo.fEntries;
136136

137137
res.eff_entries = stat_sumw2 ? stat_sum0*stat_sum0/stat_sumw2 : Math.abs(stat_sum0);

modules/hist2d/TH2Painter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ class TH2Painter extends THistPainter {
10561056
res.wmax = 0;
10571057
res.integral = stat_sum0;
10581058

1059-
if (histo.fEntries > 1)
1059+
if (histo.fEntries > 0)
10601060
res.entries = histo.fEntries;
10611061

10621062
res.eff_entries = stat_sumw2 ? stat_sum0*stat_sum0/stat_sumw2 : Math.abs(stat_sum0);

0 commit comments

Comments
 (0)