From 94d44ab09924a7183f355dd0148204caed9b9e77 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 16 Jul 2019 11:23:34 -0500 Subject: don't double count PMT pairs in fts cut --- src/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dc.c b/src/dc.c index 7242617..5ab4431 100644 --- a/src/dc.c +++ b/src/dc.c @@ -54,7 +54,7 @@ int is_fts(event *ev) /* Only loop over hit PMTs with good calibrations. */ if (!ev->pmt_hits[i].hit || ev->pmt_hits[i].flags) continue; - for (j = 0; j < MAX_PMTS; j++) { + for (j = i+1; j < MAX_PMTS; j++) { /* Only loop over hit PMTs with good calibrations. */ if (i == j || !ev->pmt_hits[j].hit || ev->pmt_hits[j].flags) continue; -- cgit