aboutsummaryrefslogtreecommitdiff
path: root/src/pmt.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/pmt.h
parent0b7f199c0d93074484ea580504485a32dc29f5e2 (diff)
downloadsddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.tar.gz
sddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.tar.bz2
sddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.zip
move everything to src directory
Diffstat (limited to 'src/pmt.h')
-rw-r--r--src/pmt.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/pmt.h b/src/pmt.h
new file mode 100644
index 0000000..fb29f4c
--- /dev/null
+++ b/src/pmt.h
@@ -0,0 +1,32 @@
+#ifndef PMT_H
+#define PMT_H
+
+#define MAX_PMTS 10000
+/* PMT radius (cm). */
+/* FIXME: should be radius of concentrator. */
+#define PMT_RADIUS 10.16
+
+/* PMT types from snoman.ratdb. */
+#define PMT_NORMAL 1
+#define PMT_OWL 2
+#define PMT_LG 3
+#define PMT_BUTT 4
+#define PMT_NECK 5
+#define PMT_CALIBRATION 5
+#define PMT_SPARE 10
+#define PMT_INVALID 11
+
+typedef struct pmt {
+ /* PMT position (cm). */
+ double pos[3];
+ /* PMT normal vector (points from the center of the PMT towards the
+ * photocathode). */
+ double normal[3];
+ int pmt_type;
+} pmt;
+
+extern pmt pmts[MAX_PMTS];
+
+int load_pmt_info();
+
+#endif