diff options
author | Thomas White <taw@physics.org> | 2023-07-03 15:48:00 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-07-28 13:22:05 +0200 |
commit | ef2a5b59b78ecf7df4b72795e0f08eec345b5b82 (patch) | |
tree | 60060457dcb8bb373b36624ccc5a017121b3937f /libcrystfel/src/predict-refine.h | |
parent | 554e1f936f1bb274cf0265bb419e8232400eb4c8 (diff) |
Calculate fs and ss gradients together, SPOT panel number, add matrix hooks
Diffstat (limited to 'libcrystfel/src/predict-refine.h')
-rw-r--r-- | libcrystfel/src/predict-refine.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libcrystfel/src/predict-refine.h b/libcrystfel/src/predict-refine.h index 6d15f1e9..e2f912d0 100644 --- a/libcrystfel/src/predict-refine.h +++ b/libcrystfel/src/predict-refine.h @@ -29,6 +29,8 @@ #ifndef PREDICT_REFINE_H #define PREDICT_REFINE_H +#include <gsl/gsl_matrix.h> + struct reflpeak; /** Enumeration of parameters which may want to be refined */ @@ -58,8 +60,6 @@ struct reflpeak { Reflection *refl; struct imagefeature *peak; double Ih; /* normalised */ - struct detgeom_panel *panel; /* panel the reflection appears on - * (we assume this never changes) */ }; /** @@ -80,10 +80,8 @@ extern double ss_dev(struct reflpeak *rp, struct detgeom *det); extern double r_gradient(int param, Reflection *refl, UnitCell *cell, double wavelength); -extern double fs_gradient(int param, Reflection *refl, UnitCell *cell, - struct detgeom_panel *p); - -extern double ss_gradient(int param, Reflection *refl, UnitCell *cell, - struct detgeom_panel *p); +extern int fs_ss_gradient(int param, Reflection *refl, UnitCell *cell, + struct detgeom_panel *p, gsl_matrix *panel_Minv, + float *fsg, float *ssg); #endif /* PREDICT_REFINE_H */ |