aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck <chuck@cfel-chuck.desy.de>2013-03-20 08:25:00 +0100
committerThomas White <taw@physics.org>2013-03-20 11:46:26 +0100
commitc3dd8b071ce4d7c489f9f1bbf8bfa80870ff7141 (patch)
treea36c46954a8723d51633b33c326dec67f18e42a7
parente170dd8566db74784b457114ba8090982939411a (diff)
fixed error in solid angle calculation
-rw-r--r--libcrystfel/src/detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index 41ebcc9a..37328e5f 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -365,7 +365,7 @@ void record_image(struct image *image, int do_poisson)
ys = (x-p->min_fs)*p->fsy + (y-p->min_ss)*p->ssy;
rx = (xs + p->cnx) / p->res;
ry = (ys + p->cny) / p->res;
- dsq = sqrt(pow(rx, 2.0) + pow(ry, 2.0));
+ dsq = pow(rx, 2.0) + pow(ry, 2.0);
/* Projected area of pixel divided by distance squared */
sa = proj_area / (dsq + Lsq);