summaryrefslogtreecommitdiff
path: root/optics.py
diff options
context:
space:
mode:
Diffstat (limited to 'optics.py')
-rw-r--r--optics.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/optics.py b/optics.py
index 23a096f..671d561 100644
--- a/optics.py
+++ b/optics.py
@@ -19,6 +19,10 @@ glossy_surface = Surface('glossy_surface')
glossy_surface.set('reflect_diffuse', 0.5)
glossy_surface.set('reflect_specular', 0.5)
+red_absorb_surface = Surface('red_absorb')
+red_absorb_surface.set('absorb', [0.0, 0.0, 1.0], [465, 545, 685])
+red_absorb_surface.set('reflect_diffuse', [1.0, 1.0, 0.0], [465, 545, 685])
+
# r7081hqe photocathode material surface
# source: hamamatsu supplied datasheet for r7081hqe pmt serial number zd0062
r7081hqe_photocathode = Surface('r7081hqe_photocathode')
@@ -39,7 +43,8 @@ r7081hqe_photocathode.detect = \
# 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('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])
# water data comes from 'lightwater_sno' material in the SNO+ optics database
water = Material('water')