aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-03-04 16:18:50 -0600
committertlatorre <tlatorre@uchicago.edu>2019-03-04 16:18:50 -0600
commit013885856d99b2ef968179b6defcc748dfa7ca69 (patch)
treea3fb09bcd3ecfabda0a25289e30bdcb160054d1a /src
parentd3268dc3460383e060587b8c78dbb3c9976ba2c1 (diff)
downloadsddm-013885856d99b2ef968179b6defcc748dfa7ca69.tar.gz
sddm-013885856d99b2ef968179b6defcc748dfa7ca69.tar.bz2
sddm-013885856d99b2ef968179b6defcc748dfa7ca69.zip
update fit to print gtid and nhit even if we skip the event
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! */