Improved output from LHE parsing
@@ -307,8 +307,10 @@ def parse_lhe_file(
for n_pass, n_fail, cut in zip(pass_cuts, fail_cuts, cuts):
logger.debug(" %s / %s events pass cut %s", n_pass, n_pass + n_fail, cut)
n_events_pass = len(observations_all_events)
- logger.info(" %s events pass everything", n_events_pass)
- logger.info(" Out of these, %s events contain negative weights", n_events_with_negative_weights)
+ if len(cuts) > 0:
+ logger.info(" %s events pass all cuts", n_events_pass)
+ if n_events_with_negative_weights > 0:
+ logger.warning(" %s events contain negative weights", n_events_with_negative_weights)
if n_events_pass == 0:
logger.warning(" No observations remaining!")
