aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-06-16 13:24:29 +0200
committerThomas White <taw@physics.org>2015-06-16 13:24:29 +0200
commit8d1af638f127095c4760030baad92a6ca2da7411 (patch)
treead56aa8f1ca30415a2404d9684b8e98a1a151e53 /src
parentb9c6d025ffe338d8e766513ee3a1b231e62d1e5d (diff)
pattern_sim: Update documentation and messages
Diffstat (limited to 'src')
-rw-r--r--src/pattern_sim.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 4ee77c19..e37fd936 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -97,6 +97,7 @@ static void show_help(const char *s)
" --beam-bandwidth Beam bandwidth as a fraction. Default 1%%.\n"
" --photon-energy Photon energy in eV. Default 9000.\n"
" --nphotons Number of photons per X-ray pulse. Default 1e12.\n"
+" --beam-radius Radius of beam in metres (default 1e-6).\n"
);
}
@@ -661,7 +662,11 @@ int main(int argc, char *argv[])
STATUS("Simulation parameters:\n");
STATUS(" Photon energy: %.2f eV (wavelength %.5f A)\n",
photon_energy, image.lambda*1e10);
+ STATUS(" Number of photons: %.0f (%.2f mJ)\n", nphotons,
+ eV_to_J(photon_energy)*1e3);
STATUS(" Beam divergence: not simulated\n");
+ STATUS(" Beam radius: %.2f microns\n",
+ beam_radius*1e6);
STATUS(" Background: %.2f photons\n", background);
switch ( spectrum_type ) {