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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zdab_utils.h') diff --git a/src/zdab_utils.h b/src/zdab_utils.h index ce3661c..91f8898 100644 --- a/src/zdab_utils.h +++ b/src/zdab_utils.h @@ -526,7 +526,7 @@ typedef struct EVBank { /* Integrated charge in the event. */ float nph; /* Sub-run number, or -1 if unknown. Only defined for run number >= 10614. */ - uint32_t sub_run; + int32_t sub_run; /* Packed word. */ uint32_t mc_pck; /* ZDAB input/output record type, e.g. PMT, NCD, CMA, RUN, etc. */ -- cgit