diff options
author | Alexandra Tolstikova <alexandra.tolstikova@desy.de> | 2017-11-16 13:46:23 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-09-10 15:01:10 +0200 |
commit | 17aec9c77e9b75510e43b0fb073df75f66849761 (patch) | |
tree | 0a9e0252b5c81ad6ad451f513a9a3834b582e10a /libcrystfel/src/image.h | |
parent | ec9f2c41c1f21968412eb4b7f57fda69ed6e37b1 (diff) |
pattern_sim: read spectrum from file
Diffstat (limited to 'libcrystfel/src/image.h')
-rw-r--r-- | libcrystfel/src/image.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h index dffcdb3a..29ce8ae1 100644 --- a/libcrystfel/src/image.h +++ b/libcrystfel/src/image.h @@ -60,6 +60,7 @@ struct imagefile_field_list; * @SPECTRUM_TOPHAT: A top hat distribution of wavelengths * @SPECTRUM_SASE: A simulated SASE spectrum * @SPECTRUM_TWOCOLOUR: A spectrum containing two peaks + * @SPECTRUM_FROMFILE: An arbitrary spectrum read from input file * * A %SpectrumType represents a type of X-ray energy spectrum to use for * generating simulated data. @@ -67,7 +68,8 @@ struct imagefile_field_list; typedef enum { SPECTRUM_TOPHAT, SPECTRUM_SASE, - SPECTRUM_TWOCOLOUR + SPECTRUM_TWOCOLOUR, + SPECTRUM_FROMFILE } SpectrumType; @@ -124,7 +126,7 @@ typedef struct _imagefeaturelist ImageFeatureList; /* Structure describing a wavelength sample from a spectrum */ struct sample { - double k; + double k; /* 1/m */ double weight; }; |