summaryrefslogtreecommitdiff
path: root/detectors
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-06-20 16:33:59 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-06-20 16:33:59 -0400
commit5b6ddaadfbcea436dfdc1e736f7da7763438dc45 (patch)
tree27d3f4d3903d2cd00449026acd23ad6de1419cd5 /detectors
parenta149f96a766c4d8d63919535cc468c539036165e (diff)
downloadchroma-5b6ddaadfbcea436dfdc1e736f7da7763438dc45.tar.gz
chroma-5b6ddaadfbcea436dfdc1e736f7da7763438dc45.tar.bz2
chroma-5b6ddaadfbcea436dfdc1e736f7da7763438dc45.zip
pack material and surface indices into the fourth byte of the triangle array on the GPU. you can now take a screenshot of an image rendered with view.py() by pressing the f12 key.
Diffstat (limited to 'detectors')
-rw-r--r--detectors/__init__.py10
-rw-r--r--detectors/lbne.py10
2 files changed, 11 insertions, 9 deletions
diff --git a/detectors/__init__.py b/detectors/__init__.py
index 8bcf69b..7a36101 100644
--- a/detectors/__init__.py
+++ b/detectors/__init__.py
@@ -1 +1,11 @@
from lbne import LBNE
+
+# from lbne document 94
+radius = 25.0
+height = 50.0
+nstrings = 324
+pmts_per_string = 102
+endcap_spacing = .485
+
+lbne = LBNE(radius, height, nstrings, pmts_per_string, endcap_spacing)
+minilbne = LBNE(radius/10, height/10, nstrings//10, pmts_per_string//10, endcap_spacing)
diff --git a/detectors/lbne.py b/detectors/lbne.py
index 7f1bb41..04751e6 100644
--- a/detectors/lbne.py
+++ b/detectors/lbne.py
@@ -13,16 +13,8 @@ from transform import rotate, make_rotation_matrix
from itertools import product
import make
-endcap_spacing = .485
-
-radius = 25.0/10.0
-height = 50.0/10.0
-
-nstrings = 324//10
-pmts_per_string = 102//10
-
class LBNE(Geometry):
- def __init__(self):
+ def __init__(self, radius, height, nstrings, pmts_per_string, endcap_spacing):
super(LBNE, self).__init__()
# outer cylinder