diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-08-14 10:33:31 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-08-14 10:33:31 -0500 |
commit | 0949702f6f4b9b69b5212681e03e026b0a8fb5a7 (patch) | |
tree | 7f4eeb87fc3fa8795bf83b4d64fbbccdd7d82d61 /src/muon.c | |
parent | b698e32c4bb98dec62810c099e5bf1029a79fd9d (diff) | |
download | sddm-0949702f6f4b9b69b5212681e03e026b0a8fb5a7.tar.gz sddm-0949702f6f4b9b69b5212681e03e026b0a8fb5a7.tar.bz2 sddm-0949702f6f4b9b69b5212681e03e026b0a8fb5a7.zip |
add refractive index for heavy and light water from snoman
Diffstat (limited to 'src/muon.c')
-rw-r--r-- | src/muon.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -240,16 +240,17 @@ double get_expected_charge(double x, double T, double *pos, double *dir, double R = NORM(pos); + /* FIXME: I just calculate delta assuming 400 nm light. */ + wavelength0 = 400.0; + if (R <= AV_RADIUS) { rho = HEAVY_WATER_DENSITY; + n = get_index_snoman_d2o(wavelength0); } else { rho = WATER_DENSITY; + n = get_index_snoman_h2o(wavelength0); } - /* FIXME: I just calculate delta assuming 400 nm light. */ - wavelength0 = 400.0; - n = get_index(rho, wavelength0, 10.0); - if (beta < 1/n) return 0; /* FIXME: is this formula valid for muons? */ |