diff options
author | Thomas White <taw@physics.org> | 2014-02-14 16:11:47 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-02-17 16:03:31 +0100 |
commit | 653cac3b7dd684a1b913b0007417762653d25a5a (patch) | |
tree | ad1e07aaacdd7d49524b37f28481946471b7995a /libcrystfel | |
parent | b2d65cb9b307a321e88fb5ff88197580ca0c59e4 (diff) |
Lorentz factor should not depend on profile radius
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/geometry.c | 4 | ||||
-rw-r--r-- | libcrystfel/src/geometry.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index e9712b0a..4e43d3c7 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -175,9 +175,9 @@ static Reflection *check_reflection(struct image *image, Crystal *cryst, } /* Lorentz factor is determined direction from the r values, before - * clamping. The multiplication by the profile radius is to make the + * clamping. The multiplication by 0.01e9 to make the * correction factor vaguely near 1. */ - L = pr / (rlow - rhigh); + L = LORENTZ_SCALE / (rlow - rhigh); /* If the "lower" Ewald sphere is a long way away, use the * position at which the Ewald sphere would just touch the diff --git a/libcrystfel/src/geometry.h b/libcrystfel/src/geometry.h index de0259a7..6a873d15 100644 --- a/libcrystfel/src/geometry.h +++ b/libcrystfel/src/geometry.h @@ -69,6 +69,8 @@ extern void update_partialities_2(Crystal *cryst, PartialityModel pmodel, extern void polarisation_correction(RefList *list, UnitCell *cell, struct image *image); +#define LORENTZ_SCALE (0.01e9) + #ifdef __cplusplus } #endif |