summaryrefslogtreecommitdiff
path: root/optics.py
diff options
context:
space:
mode:
Diffstat (limited to 'optics.py')
-rw-r--r--optics.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/optics.py b/optics.py
index 671d561..91f60cc 100644
--- a/optics.py
+++ b/optics.py
@@ -42,9 +42,10 @@ r7081hqe_photocathode.detect = \
(710.0, 0.00)])
# convert percent -> fraction
r7081hqe_photocathode.detect[:,1] /= 100.0
-# photons not detected are absorbed
-#r7081hqe_photocathode.set('absorb', 1.0 - r7081hqe_photocathode.detect[:,1], wavelengths=r7081hqe_photocathode.detect[:,0])
-r7081hqe_photocathode.set('reflect_diffuse', 1.0 - r7081hqe_photocathode.detect[:,1], wavelengths=r7081hqe_photocathode.detect[:,0])
+# roughly the same amount of detected photons are absorbed without detection
+r7081hqe_photocathode.absorb = r7081hqe_photocathode.detect
+# remaining photons are diffusely reflected
+r7081hqe_photocathode.set('reflect_diffuse', 1.0 - r7081hqe_photocathode.detect[:,1] - r7081hqe_photocathode.absorb[:,1], wavelengths=r7081hqe_photocathode.detect[:,0])
# water data comes from 'lightwater_sno' material in the SNO+ optics database
water = Material('water')