From 91bf7a2e2371a321b3bd402810cfe3b2774e2777 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Wed, 3 Aug 2011 13:44:24 -0400 Subject: GEANT4-based photon vertex generator. Propagates a particle through a huge volume of some material and harvest the photon vertices that are created for propagation with Chroma. Relies on a patched version of g4py, plus a local boost.python module that is built at import time if needed. (Does not detect changes to rebuild, however.) Chroma materials can now have a density set, as well as an elemental composition (by weight) that is used by this generator. --- optics.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'optics.py') diff --git a/optics.py b/optics.py index 6bf86ff..dea5a20 100644 --- a/optics.py +++ b/optics.py @@ -49,6 +49,8 @@ r7081hqe_photocathode.set('reflect_diffuse', 1.0 - r7081hqe_photocathode.detect[ # water data comes from 'lightwater_sno' material in the SNO+ optics database water = Material('water') +water.density = 1.0 # g/cm^3 +water.composition = { 'H' : 0.1119, 'O' : 0.8881 } # fraction by mass water.absorption_length = \ np.array([[ 200. , 57.51539993], [ 220. , 64.22219849], -- cgit