Skip to content

Commit

Permalink
cmd/lhef2hepmc: improve warning message and display event number
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Binet <binet@cern.ch>
  • Loading branch information
sbinet committed May 11, 2022
1 parent f979a1c commit fd8c2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lhef2hepmc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func main() {
xsecerr2 := (sumw2/float64(nevt) - xsecval*xsecval) / float64(nevt)

if xsecerr2 < 0 {
log.Printf("WARNING: xsecerr^2 < 0. forcing to zero. (%f)\n", xsecerr2)
log.Printf("WARNING: event #%d: xsecerr^2 < 0. forcing to zero. (xsecerr^2=%g)\n", ievt, xsecerr2)
xsecerr2 = 0.
}
xsecerr = math.Sqrt(xsecerr2)
Expand Down

0 comments on commit fd8c2dc

Please sign in to comment.