Skip to content

Commit 5b47fb9

Browse files
committed
Recover entries number after TH1K conversion
1 parent d7dc846 commit 5b47fb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/JSRootPainter.hist.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3513,12 +3513,13 @@
35133513

35143514
if (histo.fReady) return;
35153515

3516-
var arr = histo.fArray; // array of values
3516+
var arr = histo.fArray, entries = histo.fEntries; // array of values
35173517
histo.fNcells = histo.fXaxis.fNbins + 2;
35183518
histo.fArray = new Float64Array(histo.fNcells);
35193519
for (var n=0;n<histo.fNcells;++n) histo.fArray[n] = 0;
35203520
for (var n=0;n<histo.fNIn;++n) histo.Fill(arr[n]);
35213521
histo.fReady = true;
3522+
histo.fEntries = entries;
35223523
}
35233524

35243525
/** @summary Scan content of 1-D histogram

0 commit comments

Comments
 (0)