From 545e969d6b7148680cd393e8e4be0016b56f3eec Mon Sep 17 00:00:00 2001 From: ViaFerrata <michimoser@onlinehome.de> Date: Thu, 17 Jan 2019 16:15:01 +0100 Subject: [PATCH] Small bugfix. --- orcasong/file_to_hits.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/orcasong/file_to_hits.py b/orcasong/file_to_hits.py index 449ebc3..6521565 100644 --- a/orcasong/file_to_hits.py +++ b/orcasong/file_to_hits.py @@ -89,8 +89,7 @@ def get_hits(event_blob, geo, do_mc_hits, data_cuts, do4d): hits = geo.apply(hits) if data_cuts['triggered'] is True: - hits = hits.__array__[hits.triggered.astype(bool)] - #hits = hits.triggered_hits # alternative, though it only works for the triggered condition! + hits = hits.triggered_hits # alternative, though it only works for the triggered condition! pos_x, pos_y, pos_z = hits.pos_x, hits.pos_y, hits.pos_z hits_time = hits.time -- GitLab