From a5193f9b6b3267ef1a3b436cdffe2dc0d3615adc Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Wed, 27 Jul 2011 16:23:27 -0400 Subject: Use the more realistic SNO database and add PMT concentrators. --- solids/pmts.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'solids/pmts.py') diff --git a/solids/pmts.py b/solids/pmts.py index 6b10522..377024d 100644 --- a/solids/pmts.py +++ b/solids/pmts.py @@ -64,3 +64,14 @@ def build_pmt(filename, glass_thickness, outer_material=water, theta=np.pi/8): pmt.theta = theta return pmt + +def build_light_collector_from_file(filename, outer_material, theta=np.pi/24): + profile = read_csv(filename) + + # Convert mm to m + profile /= 1000.0 + + mesh = rotate_extrude(profile[:,0], profile[:,1], theta) + solid = Solid(mesh, outer_material, outer_material, color=0xFF0000, + surface=shiny_surface) + return solid -- cgit