Skip to content

Commit

Permalink
fix parsing histograms filled with no weights (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf authored Jul 30, 2024
1 parent dd2f9db commit c933c7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ function parseTH(th::Dict{Symbol, Any}; raw=true)
counts = th[:fN]
nentries = th[:fEntries]
sumw2 = th[:fSumw2]
if isempty(sumw2)
sumw2 = counts
end
dimension = th[:fYaxis_fNbins]
if dimension > 1
ymin = th[:fYaxis_fXmin]
Expand Down

0 comments on commit c933c7b

Please sign in to comment.