aboutsummaryrefslogtreecommitdiff
path: root/src/zdab_utils.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-09-23 09:16:46 -0500
committertlatorre <tlatorre@uchicago.edu>2019-09-23 09:16:46 -0500
commit34b3d958d10e39da3d19d1f93b9f4330776253e1 (patch)
tree40ced3631657451fe6ff2d45bb5af3ade75e2a3a /src/zdab_utils.h
parent213a184162e444a50f328c1106ba5fe47103d280 (diff)
downloadsddm-34b3d958d10e39da3d19d1f93b9f4330776253e1.tar.gz
sddm-34b3d958d10e39da3d19d1f93b9f4330776253e1.tar.bz2
sddm-34b3d958d10e39da3d19d1f93b9f4330776253e1.zip
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.
Diffstat (limited to 'src/zdab_utils.h')
-rw-r--r--src/zdab_utils.h2
1 files changed, 1 insertions, 1 deletions
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. */