aboutsummaryrefslogtreecommitdiff
path: root/src/zdab_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zdab_utils.h')
-rw-r--r--src/zdab_utils.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/zdab_utils.h b/src/zdab_utils.h
index 91f8898..ca47cbb 100644
--- a/src/zdab_utils.h
+++ b/src/zdab_utils.h
@@ -208,6 +208,27 @@ extern char zdab_err[256];
/* Structural links for FTXV bank. */
#define KFTXV_FTXT 1 /* Link to first fit track. */
+typedef struct RHDRBank {
+ uint32_t date; /* Format: yyyymmdd. */
+ uint32_t time; /* Format: hhmmsscc - cc is centisec. */
+ uint32_t DAQ_Version; /* DAQ Version. */
+ uint32_t run_number; /* Run number. */
+ uint32_t cal_trial; /* Calibration trial number. */
+ uint32_t source_mask; /* Source mask indicates which source is present. */
+ uint32_t run_mask; /* Run type, see: http://hep.uchicago.edu/~tlatorre/snoman_companion/id_run_types.html. */
+ uint32_t gt_crate_mask; /* Mask which shows which crates are masked in. */
+ uint32_t first_gt; /* First GTID of this run. */
+ uint32_t valid_gt; /* First valid GTID (after hardware changes have been made). */
+ uint32_t spare1;
+ uint32_t spare2;
+ uint32_t spare3;
+ uint32_t spare4;
+ uint32_t spare5;
+ uint32_t spare6;
+ uint32_t spare7;
+ uint32_t spare8;
+} RHDRBank;
+
typedef struct RSPBank {
/* Optical response for this event. */
float optical_response;
@@ -664,6 +685,7 @@ int get_ftpv(zebraFile *f, zebraBank *ev, FTPVBank *bftpv);
int get_ftxk(zebraFile *f, zebraBank *ev, FTXKBank *bftxk);
int get_rsp(zebraFile *f, zebraBank *ev, RSPBank *brsp);
+void unpack_rhdr(uint32_t *data, RHDRBank *b);
void unpack_rsp(uint32_t *data, RSPBank *b);
void unpack_ftpt(uint32_t *data, FTPTBank *b);
void unpack_ftpv(uint32_t *data, FTPVBank *b);