Skip to content

Commit 5972e86

Browse files
committed
Fix error in projection statistic calculations
1 parent c045498 commit 5972e86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/JSRoot.hist.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4698,6 +4698,10 @@ JSROOT.define(['d3', 'painter', 'gpad'], (d3, jsrp) => {
46984698
}
46994699
}
47004700

4701+
// reset statistic before display
4702+
this.proj_hist.fEntries = 0;
4703+
this.proj_hist.fTsumw = 0;
4704+
47014705
return canp.drawProjection(this.is_projection, this.proj_hist);
47024706
}
47034707

0 commit comments

Comments
 (0)