aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5_utils.h
diff options
context:
space:
mode:
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