From 34b3d958d10e39da3d19d1f93b9f4330776253e1 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 23 Sep 2019 09:16:46 -0500 Subject: add sub_run variable to the events array in the HDF5 file This commit adds the sub_run variable to the ev array in the HDF5 output file and updates plot-energy to order the events using the run and sub_run variables. This fixes a potential issue where I was sorting by GTID before, but the GTID can wrap around and so isn't guaranteed to put the events in the right order. --- src/zdab_utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/zdab_utils.c') diff --git a/src/zdab_utils.c b/src/zdab_utils.c index cf1a01c..8b6cbc8 100644 --- a/src/zdab_utils.c +++ b/src/zdab_utils.c @@ -103,6 +103,7 @@ int get_event(zebraFile *f, event *ev, zebraBank *bev) unpack_ev(bev->data, &ev_bank); ev->run = ev_bank.run; + ev->sub_run = ev_bank.sub_run; ev->gtid = ev_bank.gtr_id; ev->trigger_type = ev_bank.trg_type; ev->trigger_time = ev_bank.gtr; -- cgit