aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-26 12:20:05 +0100
committerThomas White <taw@physics.org>2009-11-26 12:20:14 +0100
commit3d22f28223ee6dcef7e8d0cba247ac112942e344 (patch)
tree8dd47d46eb78bc52ce284ec833af46342320e86a /src/detector.c
parentfe9063f6c7b353d6ab983052d55fe63b093a5335 (diff)
Move constants around
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c
index 1e0e4a2f..9f28a624 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -29,6 +29,9 @@
/* Detector's saturation value */
#define SATURATION (60000)
+/* Radius of X-ray beam */
+#define BEAM_RADIUS (3.0e-6)
+
/* Bleed excess intensity into neighbouring pixels */
static void bloom_values(double *tmp, int x, int y,
@@ -169,7 +172,8 @@ void record_image(struct image *image)
/* Add intensity contribution from water */
water = water_intensity(image->qvecs[x + image->width*y],
- image->xray_energy);
+ image->xray_energy,
+ BEAM_RADIUS, 1.5e-6);
//printf("%e, %e, ", intensity, water);
intensity += water;