diff options
author | Stan Seibert <stan@mtrr.org> | 2011-09-16 14:27:46 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-09-16 14:27:46 -0400 |
commit | 084dfd08b714faefaea77cb7dc04d2e93dc04b1d (patch) | |
tree | 5be8c1f1d30dc52d74c70c4964ec54f66294c265 /solids/__init__.py | |
parent | cfecff941fc619eb7269128afc62d9c11ae78aff (diff) | |
download | chroma-084dfd08b714faefaea77cb7dc04d2e93dc04b1d.tar.gz chroma-084dfd08b714faefaea77cb7dc04d2e93dc04b1d.tar.bz2 chroma-084dfd08b714faefaea77cb7dc04d2e93dc04b1d.zip |
File reorganization to move toward standard python package layout
Diffstat (limited to 'solids/__init__.py')
-rw-r--r-- | solids/__init__.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/solids/__init__.py b/solids/__init__.py deleted file mode 100644 index c4d227f..0000000 --- a/solids/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -from pmts import build_pmt, build_light_collector, build_light_collector_from_file, build_pmt_shell -from chroma.optics import * -from os.path import dirname - -def build_12inch_pmt(outer_material=water, nsteps=16): - return build_pmt(dirname(__file__) + '/hamamatsu_12inch.txt', 0.003, - outer_material, nsteps) - -def build_12inch_pmt_shell(outer_material=water, nsteps=16): - return build_pmt_shell(dirname(__file__) + '/hamamatsu_12inch.txt') - -# from Jelena Maricic -lc_12inch_a = 0.16597 -lc_12inch_b = 0.584525 -lc_12inch_d = 0.09548 -lc_12inch_rmin = 0.1524 -lc_12inch_rmax = 0.235072 - -def build_12inch_pmt_with_lc(outer_material=water, nsteps=16): - pmt = build_12inch_pmt(outer_material, nsteps) - return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, - d=lc_12inch_d, rmin=lc_12inch_rmin, - rmax=lc_12inch_rmax) - -def build_12inch_pmt_with_lc_hd(outer_material=water, nsteps=128): - pmt = build_12inch_pmt(outer_material, nsteps) - return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, - d=lc_12inch_d, rmin=lc_12inch_rmin, - rmax=lc_12inch_rmax, npoints=100) - -def build_8inch_pmt(outer_material=water, nsteps=24): - return build_pmt(dirname(__file__) + '/sno_pmt.txt', 0.003, - outer_material, nsteps) - -def build_8inch_pmt_with_lc(outer_material=water, nsteps=24): - pmt = build_8inch_pmt(outer_material, nsteps) - lc = build_light_collector_from_file(dirname(__file__) + '/sno_cone.txt', - outer_material, nsteps) - return pmt + lc |