aboutsummaryrefslogtreecommitdiff
path: root/src/dc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dc.h')
-rw-r--r--src/dc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dc.h b/src/dc.h
index 89a7670..4635806 100644
--- a/src/dc.h
+++ b/src/dc.h
@@ -19,6 +19,15 @@
#include "event.h"
#include "zebra.h"
+#include <stdint.h>
+
+/* Data cleaning bitmasks. */
+#define DC_MUON 0x1
+#define DC_JUNK 0x2
+#define DC_CRATE_ISOTROPY 0x4
+#define DC_QVNHIT 0x8
+#define DC_NECK 0x10
+#define DC_FLASHER 0x20
/* Minimum number of normal PMTs which must be hit to be tagged as an incoming
* muon. */
@@ -34,6 +43,7 @@
/* QvNHIT ratio threshold. */
#define QRATIO_THRESHOLD 0.25
+uint32_t get_dc_word(event *ev, zebraFile *f, zebraBank *bmast, zebraBank *bev);
int is_muon(event *ev);
int junk_cut(zebraFile *f, zebraBank *bmast, zebraBank *bev);
int crate_isotropy(event *ev);