aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-09-09 11:20:17 -0500
committertlatorre <tlatorre@uchicago.edu>2019-09-09 11:20:17 -0500
commitd5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8 (patch)
treec028f598db4a1ca1534452dc993eeb3b69dd00f4 /src
parent205dc2bbbc12b40bc361c162c472591d5df18137 (diff)
downloadsddm-d5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8.tar.gz
sddm-d5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8.tar.bz2
sddm-d5b1416980f5bf23fe29a0a173dd3acfd8c8c3c8.zip
reset the PMT_FLAG_CHARGE bit in get_event()
Diffstat (limited to 'src')
-rw-r--r--src/zdab_utils.c3
1 files changed, 3 insertions, 0 deletions
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: