diff options
Diffstat (limited to 'detectors/__init__.py')
-rw-r--r-- | detectors/__init__.py | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/detectors/__init__.py b/detectors/__init__.py index eeb2e07..2d7f250 100644 --- a/detectors/__init__.py +++ b/detectors/__init__.py @@ -1,4 +1,12 @@ -from lbne import LBNE +from lbne import build_lbne + +import os +import sys + +dir = os.path.split(os.path.realpath(__file__))[0] +sys.path.append(dir + '/..') + +from view import buildable # from Water Cherenkov case study radius = 65.0/2 @@ -7,11 +15,10 @@ nstrings = 229 pmts_per_string = 90 endcap_spacing = 0.8912 -minilbne = LBNE(radius/10, height/10, nstrings//10, pmts_per_string//10, endcap_spacing) -microlbne = LBNE(radius/40, height/40, nstrings//40, pmts_per_string//40, endcap_spacing) +@buildable('lbne') +def build_lbne_200kton(): + return build_lbne(radius, height, nstrings, pmts_per_string, endcap_spacing) -minilbne_cut = LBNE(radius/10, height/10, nstrings//10, pmts_per_string//10, endcap_spacing, - cut_pmt=True) -microlbne_cut = LBNE(radius/40, height/40, nstrings//40, pmts_per_string//40, endcap_spacing, - cut_pmt=True) -lbne_cut = LBNE(radius, height, nstrings, pmts_per_string, endcap_spacing, cut_pmt=True) +@buildable('minilbne') +def build_minilbne(): + return build_lbne(radius/10, height/10, nstrings//10, pmts_per_string//10, endcap_spacing) |