aboutsummaryrefslogtreecommitdiff
path: root/src/event.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-08-14 10:08:27 -0500
committertlatorre <tlatorre@uchicago.edu>2018-08-14 10:08:27 -0500
commit24c8bcfe7f76b20124e2862ea050f815c0f768e7 (patch)
treee5bdbd638a2c7f38f1c094cc9e95cbdfe05b9481 /src/event.h
parent0b7f199c0d93074484ea580504485a32dc29f5e2 (diff)
downloadsddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.tar.gz
sddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.tar.bz2
sddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.zip
move everything to src directory
Diffstat (limited to 'src/event.h')
-rw-r--r--src/event.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h
new file mode 100644
index 0000000..ecb498d
--- /dev/null
+++ b/src/event.h
@@ -0,0 +1,23 @@
+#ifndef EVENT_H
+#define EVENT_H
+
+#include <stdint.h>
+
+/* Struct to hold all data from a single event used for fitting. */
+
+typedef struct pmt_hit {
+ int hit;
+ float t;
+ float qhl;
+ float qhs;
+ float qlx;
+ int flags;
+} pmt_hit;
+
+typedef struct event {
+ int run;
+ uint32_t gtid;
+ pmt_hit pmt_hits[10000];
+} event;
+
+#endif