aboutsummaryrefslogtreecommitdiff
path: root/src/optics.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-11-27 16:07:56 -0600
committertlatorre <tlatorre@uchicago.edu>2018-11-27 16:07:56 -0600
commita0c1f4560325311558eedf39bd191ddaad182367 (patch)
tree90b4cf850ce5f0f3f8436cf3f8a6cc03103826f2 /src/optics.h
parent44a346b9137cb26e5b54a7e77f4d2fc0d594774d (diff)
downloadsddm-a0c1f4560325311558eedf39bd191ddaad182367.tar.gz
sddm-a0c1f4560325311558eedf39bd191ddaad182367.tar.bz2
sddm-a0c1f4560325311558eedf39bd191ddaad182367.zip
add rayleigh scattering
This commit adds Rayleigh scattering to the likelihood function. The Rayleigh scattering lengths come from rsp_rayleigh.dat from SNOMAN which only includes photons which scattered +/- 10 ns around the prompt peak. The fraction of light which scatters is treated the same in the likelihood as reflected light, i.e. it is uniform across all the PMTs in the detector and the time PDF is assumed to be a constant for a fixed amount of time after the prompt peak.
Diffstat (limited to 'src/optics.h')
-rw-r--r--src/optics.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/optics.h b/src/optics.h
index 06b89ca..64796c6 100644
--- a/src/optics.h
+++ b/src/optics.h
@@ -1,7 +1,15 @@
#ifndef OPTICS_H
#define OPTICS_H
-int optics_init(void);
+#include "dict.h"
+
+extern char optics_err[256];
+
+int optics_init(dict *db);
+double get_rayleigh_scattering_length_snoman_d2o(double wavelength);
+double get_rayleigh_scattering_length_snoman_h2o(double wavelength);
+double get_weighted_rayleigh_scattering_length_snoman_d2o(void);
+double get_weighted_rayleigh_scattering_length_snoman_h2o(void);
double get_weighted_absorption_length_snoman_h2o(void);
double get_absorption_length_snoman_h2o(double wavelength);
double get_weighted_absorption_length_snoman_d2o(void);