summaryrefslogtreecommitdiff
path: root/detectors/lbne.py
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-05-23 19:33:02 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-05-23 19:33:02 -0400
commit36391a29dfb02a24e97b3ef9a3727201af415985 (patch)
treee1113c6aa310ba5f49c985b4fef0858b0d0f00d9 /detectors/lbne.py
parent37b1d85c9f61190f223ee0cc6893c75c6c5f88cb (diff)
downloadchroma-36391a29dfb02a24e97b3ef9a3727201af415985.tar.gz
chroma-36391a29dfb02a24e97b3ef9a3727201af415985.tar.bz2
chroma-36391a29dfb02a24e97b3ef9a3727201af415985.zip
lbne model now imports python modules directly
Diffstat (limited to 'detectors/lbne.py')
-rw-r--r--detectors/lbne.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/detectors/lbne.py b/detectors/lbne.py
index 7cd666a..ff38ef4 100644
--- a/detectors/lbne.py
+++ b/detectors/lbne.py
@@ -1,13 +1,20 @@
-import sys
import numpy as np
from copy import deepcopy
-from chroma import layout
-from chroma.stl import read_stl
-from chroma.transform import rotate
-from chroma.geometry import Geometry, Solid
-from chroma.materials import glass, h2o
from itertools import product
+import os
+import sys
+
+dir = os.path.split(os.path.realpath(__file__))[0]
+
+sys.path.append(dir + '/..')
+
+import layout
+from stl import read_stl
+from transform import rotate
+from geometry import Geometry, Solid
+from materials import glass, h2o
+
endcap_spacing = .485
radius = 25.0/10.0