aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5_utils.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-09-30 11:10:20 -0500
committertlatorre <tlatorre@uchicago.edu>2019-09-30 11:10:20 -0500
commit76006218bdb36fc1f11a33678b83ec0776cc6228 (patch)
tree2c87cfd51bcd4dfdde6d82b77abf6a8a57ed9cfc /src/hdf5_utils.h
parente41bc169e213bbb2fb1c132150736e3ad8760dd4 (diff)
downloadsddm-76006218bdb36fc1f11a33678b83ec0776cc6228.tar.gz
sddm-76006218bdb36fc1f11a33678b83ec0776cc6228.tar.bz2
sddm-76006218bdb36fc1f11a33678b83ec0776cc6228.zip
write out run header info to the hdf5 file
Diffstat (limited to 'src/hdf5_utils.h')
-rw-r--r--src/hdf5_utils.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/hdf5_utils.h b/src/hdf5_utils.h
index 850355f..25d8757 100644
--- a/src/hdf5_utils.h
+++ b/src/hdf5_utils.h
@@ -4,6 +4,16 @@
#include <stdint.h>
#include <stdlib.h> /* for size_t */
+/* Struct to hold information for each RHDR bank.
+ *
+ * This is primarily needed to store the first_gtid variable so that later we
+ * can order the events sequentially in case of a GTID rollover. */
+typedef struct HDF5RHDR {
+ int run;
+ uint32_t run_mask;
+ uint32_t first_gtid;
+} HDF5RHDR;
+
/* Struct to hold information for each triggered event (similar to the EV bank,
* but with some reconstructed information).
*
@@ -81,6 +91,6 @@ typedef struct HDF5Fit {
double psi;
} HDF5Fit;
-int save_output(const char *output, HDF5Event *hdf5_events, size_t nevents, HDF5MCGN *hdf5_mcgn, size_t nmcgn, HDF5Fit *hdf5_fits, size_t nfits);
+int save_output(const char *output, HDF5Event *hdf5_events, size_t nevents, HDF5MCGN *hdf5_mcgn, size_t nmcgn, HDF5Fit *hdf5_fits, size_t nfits, HDF5RHDR *hdf5_rhdr, size_t nrhdr);
#endif