summaryrefslogtreecommitdiff
path: root/detectors
diff options
context:
space:
mode:
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