From 44b44af2d3a9a0c4a72f7f88903587f10d69a909 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 3 Jun 2010 18:02:07 +0200 Subject: Move photon energy to parameters header --- src/parameters-lcls.tmp | 3 +++ src/pattern_sim.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/parameters-lcls.tmp b/src/parameters-lcls.tmp index 7ae2af48..1fb35065 100644 --- a/src/parameters-lcls.tmp +++ b/src/parameters-lcls.tmp @@ -12,3 +12,6 @@ /* Radius of X-ray beam */ #define BEAM_RADIUS (3.0e-6 / 2.0) + +/* Photon energy in eV */ +#define PHOTON_ENERGY (8000.0) diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 6a8a9299..130b6681 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -31,6 +31,7 @@ #include "peaks.h" #include "sfac.h" #include "reflections.h" +#include "parameters-lcls.tmp" static void show_help(const char *s) @@ -316,7 +317,7 @@ int main(int argc, char *argv[]) /* Define image parameters */ image.width = 1024; image.height = 1024; - image.lambda = ph_en_to_lambda(eV_to_J(1790.0)); /* Wavelength */ + image.lambda = ph_en_to_lambda(eV_to_J(PHOTON_ENERGY)); /* Wavelength */ cell = load_cell_from_pdb(filename); image.filename = NULL; -- cgit v1.2.3