From 191370453ef14273229153d7568a6dcdd78a5e03 Mon Sep 17 00:00:00 2001 From: Elise Dianne Hinkle Date: Fri, 15 Dec 2023 14:17:10 -0800 Subject: [PATCH] Adding io_group requirement to same_channel check in calib_hit_merger. --- src/proto_nd_flow/reco/charge/calib_hit_merger.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/proto_nd_flow/reco/charge/calib_hit_merger.py b/src/proto_nd_flow/reco/charge/calib_hit_merger.py index 7b2856e7..99af18a3 100644 --- a/src/proto_nd_flow/reco/charge/calib_hit_merger.py +++ b/src/proto_nd_flow/reco/charge/calib_hit_merger.py @@ -152,6 +152,7 @@ def merge_hits(self,hits, weights, seg_fracs, dt_cut, sum_fields=None, weighted_ same_channel = ( (new_hits['z'][..., :-1] == new_hits['z'][..., 1:]) & (new_hits['y'][..., :-1] == new_hits['y'][..., 1:]) + & (new_hits['io_group'][..., :-1] == new_hits['io_group'][..., 1:]) ) # flag valid hits if they are on the same channel and are close in time