aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/beam-parameters.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-12-14 11:51:57 +0100
committerThomas White <taw@physics.org>2012-12-14 11:59:23 +0100
commitb22b9de18152c917d4e9f733c41402d9935ae93d (patch)
treece3019e93ef0c40e5d6988956bb1f1b894540847 /libcrystfel/src/beam-parameters.h
parente745af481e176834e804b2eec59b7170e260ce81 (diff)
Beam and detector geometry don't need to be copied
The did when this was all done with threads, but with separate processes each worker has its own copy of the structure already. It can be updated after every image and freed at the end.
Diffstat (limited to 'libcrystfel/src/beam-parameters.h')
-rw-r--r--libcrystfel/src/beam-parameters.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/beam-parameters.h b/libcrystfel/src/beam-parameters.h
index e0b16895..8212811b 100644
--- a/libcrystfel/src/beam-parameters.h
+++ b/libcrystfel/src/beam-parameters.h
@@ -41,6 +41,7 @@ struct beam_params
double fluence; /* photons per pulse */
double beam_radius; /* metres */
double photon_energy; /* eV per photon */
+ char *photon_energy_from; /* HDF5 dataset name */
double bandwidth; /* FWHM(wavelength) over wavelength.
* Note: current simulation code just uses
* a rectangular distribution with this as
@@ -48,13 +49,12 @@ struct beam_params
double divergence; /* divergence (radians) */
double profile_radius; /* Reciprocal space size of a reflection */
-
- char *photon_energy_from; /* hdf5 group name */
};
extern struct beam_params *get_beam_parameters(const char *filename);
+extern void free_beam_parameters(struct beam_params *beam);
-extern void fill_in_beamParam(struct beam_params *beam, struct hdfile *f);
+extern void fill_in_beam_parameters(struct beam_params *beam, struct hdfile *f);
#endif /* BEAM_PARAMETERS_H */