diff options
| author | tlatorre <tlatorre@uchicago.edu> | 2019-05-29 12:13:21 -0400 |
|---|---|---|
| committer | tlatorre <tlatorre@uchicago.edu> | 2019-05-29 12:13:21 -0400 |
| commit | bf936151536484c266707f77ef7ef820668bb0ce (patch) | |
| tree | 69bc5a6b6ac2fd049efd337913234298856717a7 /src/optics.h | |
| parent | 9b76e490e74c827f63424133bb2e45f01cb1ea55 (diff) | |
| download | sddm-bf936151536484c266707f77ef7ef820668bb0ce.tar.gz sddm-bf936151536484c266707f77ef7ef820668bb0ce.tar.bz2 sddm-bf936151536484c266707f77ef7ef820668bb0ce.zip | |
add get_avg_index_{d2o,h2o} functions
Diffstat (limited to 'src/optics.h')
| -rw-r--r-- | src/optics.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/optics.h b/src/optics.h index 0e7740b..26e268e 100644 --- a/src/optics.h +++ b/src/optics.h @@ -23,16 +23,15 @@ /* Global error string when optics_init() returns -1. */ extern char optics_err[256]; -/* Index of refraction in water and heavy water averaged over the Cerenkov - * spectrum and the PMT quantum efficiency. - * - * Note: You must call optics_init() before using these! */ -extern double avg_index_h2o, avg_index_d2o; - /* Initialize the optics data by precomputing the average absorption and * scattering tables. */ int optics_init(void); +/* Functions to get the index of refraction in water and heavy water averaged + * over the Cerenkov spectrum and the PMT quantum efficiency. */ +double get_avg_index_d2o(void); +double get_avg_index_h2o(void); + /* Functions for computing the index of refraction. */ double get_index(double p, double wavelength, double T); double get_index_snoman_h2o(double wavelength); |
