diff options
author | Stan Seibert <stan@mtrr.org> | 2011-08-03 13:44:24 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-08-03 13:44:24 -0400 |
commit | 91bf7a2e2371a321b3bd402810cfe3b2774e2777 (patch) | |
tree | ac1cd8299efc36844d5edb647b9a98351e3fb002 /optics.py | |
parent | 1fd605da0024f85714f9451bb78d3a767788e811 (diff) | |
download | chroma-91bf7a2e2371a321b3bd402810cfe3b2774e2777.tar.gz chroma-91bf7a2e2371a321b3bd402810cfe3b2774e2777.tar.bz2 chroma-91bf7a2e2371a321b3bd402810cfe3b2774e2777.zip |
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.
Diffstat (limited to 'optics.py')
-rw-r--r-- | optics.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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], |