From 76006218bdb36fc1f11a33678b83ec0776cc6228 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 30 Sep 2019 11:10:20 -0500 Subject: write out run header info to the hdf5 file --- src/hdf5_utils.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/hdf5_utils.h') 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 #include /* 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 -- cgit