aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fit.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fit.c b/src/fit.c
index 177204c..f3ae311 100644
--- a/src/fit.c
+++ b/src/fit.c
@@ -6173,14 +6173,15 @@ skip_mc:
nhit = get_nhit(&ev);
- if (nhit < min_nhit) break;
-
if (fout) {
fprintf(fout, " - gtid: %i\n", ev.gtid);
fprintf(fout, " nhit: %zu\n", nhit);
- fprintf(fout, " fit:\n");
}
+ if (nhit < min_nhit) goto skip_event;
+
+ if (fout) fprintf(fout, " fit:\n");
+
fmin_best = nll_best(&ev);
/* Loop over 1,2,...,max_particles particle hypotheses. */
@@ -6226,6 +6227,8 @@ skip_mc:
}
}
+skip_event:
+
/* Note the origin link for the first EV bank points back to the
* structural link location in the MAST bank. These links are super
* confusing! */