Skip to content

Commit 82dcfbb

Browse files
committed
Increment entries when calling histogram.Fill() method
Entries value used to ensure that histogram is displayed in the ROOT
1 parent e08c80f commit 82dcfbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/JSRootCore.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,7 @@
20412041
if (bin < 0) bin = 0; else
20422042
if (bin > axis.fNbins + 1) bin = axis.fNbins + 1;
20432043
this.fArray[bin] += ((weight===undefined) ? 1 : weight);
2044+
this.fEntries++;
20442045
}
20452046
}
20462047

@@ -2056,6 +2057,7 @@
20562057
if (bin2 < 0) bin2 = 0; else
20572058
if (bin2 > axis2.fNbins + 1) bin2 = axis2.fNbins + 1;
20582059
this.fArray[bin1 + (axis1.fNbins+2)*bin2] += ((weight===undefined) ? 1 : weight);
2060+
this.fEntries++;
20592061
}
20602062
}
20612063

@@ -2074,6 +2076,7 @@
20742076
if (bin3 < 0) bin3 = 0; else
20752077
if (bin3 > axis3.fNbins + 1) bin3 = axis3.fNbins + 1;
20762078
this.fArray[bin1 + (axis1.fNbins+2)* (bin2+(axis2.fNbins+2)*bin3)] += ((weight===undefined) ? 1 : weight);
2079+
this.fEntries++;
20772080
}
20782081
}
20792082

0 commit comments

Comments
 (0)