From e4ea02720991b5e923e0b7b1045709aff0d6b0c0 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Wed, 5 Oct 2011 17:37:26 -0400 Subject: Epic port of Chroma from units of meters/seconds/MeV to millimeters/nanoseconds/MeV in order to match GEANT4, and also avoid huge discrepancies in magnitude caused by values like 10e-9 sec. Along the way, cleaned up a few things: * Switch the PI and SPEED_OF_LIGHT constants from double to single precision. This avoid some unnecessary double precision calculations in the GPU code. * Fixed a silly problem in the definition of the spherical spiral. Now the demo detector looks totally awesome. Also wrapped it in a black surface. Demo detector now has 10055 PMTs. * Updated the test_ray_intersection data file to reflect the new units. * Fix a missing import in chroma.gpu.tools --- test/data/ray_intersection.npy | Bin 0 -> 1920080 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/data/ray_intersection.npy (limited to 'test/data/ray_intersection.npy') diff --git a/test/data/ray_intersection.npy b/test/data/ray_intersection.npy new file mode 100644 index 0000000..43f51c2 Binary files /dev/null and b/test/data/ray_intersection.npy differ -- cgit