diff options
Diffstat (limited to 'src/dc.c')
-rw-r--r-- | src/dc.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -37,6 +37,11 @@ * number in any position of a 93 ns sliding window applied to the PMT time * spectrum of the event. * + * Note: We use the pt1 time which is the ECA + PCA without the charge walk + * applied since the cut may fail to tag an event which consists mostly of + * electronics noise where the charges are too low to apply the PCA walk + * calibration. + * */ int is_itc(event *ev) { @@ -48,9 +53,9 @@ int is_itc(event *ev) nhit = 0; for (i = 0; i < MAX_PMTS; i++) { /* Only loop over hit PMTs with good calibrations. */ - if (!ev->pmt_hits[i].hit || ev->pmt_hits[i].flags) continue; + if (!ev->pmt_hits[i].hit || ev->pmt_hits[i].pt1 < -10) continue; - t_array[nhit++] = ev->pmt_hits[i].t; + t_array[nhit++] = ev->pmt_hits[i].pt1; } /* Sort the times. */ |