From bf936151536484c266707f77ef7ef820668bb0ce Mon Sep 17 00:00:00 2001 From: tlatorre Date: Wed, 29 May 2019 12:13:21 -0400 Subject: add get_avg_index_{d2o,h2o} functions --- src/optics.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/optics.h') 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); -- cgit