summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-06-22 15:16:11 -0400
committerStan Seibert <stan@mtrr.org>2011-06-22 15:16:11 -0400
commitc363c3f7e396fedfd0e4ef05f777d78fb72aacb3 (patch)
treea3dda17c5c0fe682ba05b213e70538d9cd6380fd /src
parent484d4d574c57f14ca66c8e1c141b58915a1798ae (diff)
downloadchroma-c363c3f7e396fedfd0e4ef05f777d78fb72aacb3.tar.gz
chroma-c363c3f7e396fedfd0e4ef05f777d78fb72aacb3.tar.bz2
chroma-c363c3f7e396fedfd0e4ef05f777d78fb72aacb3.zip
Start jittering the PMT times in the DAQ simulation.
Diffstat (limited to 'src')
-rw-r--r--src/daq.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daq.cu b/src/daq.cu
index c79401c..99490bd 100644
--- a/src/daq.cu
+++ b/src/daq.cu
@@ -57,7 +57,7 @@ extern "C" {
if (triangle_id > -1) {
int solid_id = solid_map[triangle_id];
int state = photon_states[id];
- float time = photon_times[id];// + curand_normal(&rng) * time_rms;
+ float time = photon_times[id] + curand_normal(&rng) * time_rms;
unsigned int time_int = float_to_sortable_int(time);
if (solid_id < nsolids && state == detection_state)
atomicMin(earliest_time_int + solid_id, time_int);