File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17581758 m . getBinEffectiveEntries = function ( bin ) {
17591759 if ( bin < 0 || bin >= this . fNcells ) return 0 ;
17601760 var sumOfWeights = this . fBinEntries [ bin ] ;
1761- if ( this . fBinSumw2 == null || this . fBinSumw2 . length != this . fNcells ) {
1761+ if ( ! this . fBinSumw2 || this . fBinSumw2 . length != this . fNcells ) {
17621762 // this can happen when reading an old file
17631763 return sumOfWeights ;
17641764 }
1765- var sumOfWeightsSquare = this . fSumw2 [ bin ] ;
1766- return ( sumOfWeightsSquare > 0 ? sumOfWeights * sumOfWeights / sumOfWeightsSquare : 0 ) ;
1765+ var sumOfWeightsSquare = this . fBinSumw2 [ bin ] ;
1766+ return ( sumOfWeightsSquare > 0 ) ? sumOfWeights * sumOfWeights / sumOfWeightsSquare : 0 ;
17671767 } ;
17681768 m . getBinError = function ( bin ) {
17691769 if ( bin < 0 || bin >= this . fNcells ) return 0 ;
You can’t perform that action at this time.
0 commit comments