From 3d22f28223ee6dcef7e8d0cba247ac112942e344 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 26 Nov 2009 12:20:05 +0100 Subject: Move constants around --- src/detector.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/detector.c') 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; -- cgit v1.2.3