aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorAlexandra Tolstikova <alexandra.tolstikova@desy.de>2017-11-22 17:46:15 +0100
committerThomas White <taw@physics.org>2018-09-10 15:18:15 +0200
commit925610d93bbbdf590a58c5bb9fdae2af5a8fd30f (patch)
tree3f177fbeaf171c46c28e39ca4b7cd25ff475dd7d /libcrystfel
parent5a50a82a9ee0936d67901f43e68ca37455a7814b (diff)
indexamajig: read pink beam spectrum from file
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/image.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h
index 357a550a..1cd9f35a 100644
--- a/libcrystfel/src/image.h
+++ b/libcrystfel/src/image.h
@@ -123,6 +123,15 @@ enum imagefile_type
/* An opaque type representing a list of image features */
typedef struct _imagefeaturelist ImageFeatureList;
+
+struct spectrum
+{
+ int n;
+ double *ks; /* 1/m */
+ double *weights;
+};
+
+
/* Structure describing a wavelength sample from a spectrum */
struct sample
{
@@ -213,6 +222,9 @@ struct image {
int serial; /* Monotonically ascending serial
* number for this image */
+ struct spectrum *spectrum; /* Beam spectrum for pink beam data */
+
+ // These only used in pattern_sim, to be changed to struct spectrum from above later...
struct sample *spectrum0;
int nsamples; /* Number of wavelengths */
int spectrum_size; /* Size of "spectrum" */