From bc628cd85f512d962828e9b8c5df5a6e6d22fac5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 7 Mar 2013 10:50:13 +0100 Subject: Add the possibility to have different partiality models --- libcrystfel/src/geometry.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src/geometry.h') diff --git a/libcrystfel/src/geometry.h b/libcrystfel/src/geometry.h index aecdc28a..8b726ed7 100644 --- a/libcrystfel/src/geometry.h +++ b/libcrystfel/src/geometry.h @@ -43,10 +43,26 @@ extern "C" { #endif +/** + * PartialityModel: + * @PMODEL_SPHERE : Intersection of sphere with excited volume of reciprocal + * space. + * @PMODEL_UNITY : Set all all partialities and Lorentz factors to 1. + * + * A %PartialityModelModel describes a geometrical model which can be used to + * calculate spot partialities and Lorentz correction factors. + **/ +typedef enum { + + PMODEL_SPHERE, + PMODEL_UNITY, + +} PartialityModel; + extern RefList *find_intersections(struct image *image, Crystal *cryst); extern RefList *select_intersections(struct image *image, Crystal *cryst); -extern void update_partialities(Crystal *cryst); +extern void update_partialities(Crystal *cryst, PartialityModel pmodel); #ifdef __cplusplus } -- cgit v1.2.3 From 060dcd17f88045995eb54e8f663e06f9144b13bf Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 13 Mar 2013 10:43:52 +0100 Subject: Fix comment --- libcrystfel/src/geometry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/geometry.h') diff --git a/libcrystfel/src/geometry.h b/libcrystfel/src/geometry.h index 8b726ed7..2ac5982b 100644 --- a/libcrystfel/src/geometry.h +++ b/libcrystfel/src/geometry.h @@ -49,7 +49,7 @@ extern "C" { * space. * @PMODEL_UNITY : Set all all partialities and Lorentz factors to 1. * - * A %PartialityModelModel describes a geometrical model which can be used to + * A %PartialityModel describes a geometrical model which can be used to * calculate spot partialities and Lorentz correction factors. **/ typedef enum { -- cgit v1.2.3