From d5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 9 Sep 2019 11:20:17 -0500 Subject: reset the PMT_FLAG_CHARGE bit in get_event() --- src/zdab_utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/zdab_utils.c b/src/zdab_utils.c index 41be1c6..7c3d2ae 100644 --- a/src/zdab_utils.c +++ b/src/zdab_utils.c @@ -151,6 +151,9 @@ int get_event(zebraFile *f, event *ev, zebraBank *bev) /* Clear the PMT_FLAG_DIS bit. */ ev->pmt_hits[id].flags &= ~PMT_FLAG_DIS; + /* Clear the PMT_FLAG_CHARGE bit. */ + ev->pmt_hits[id].flags &= ~PMT_FLAG_CHARGE; + /* Make sure we have good calibrations. Technically, we should only * have to check the KPF_DIS bit since according to the SNOMAN * docs: -- cgit