From c92657e33b81e37eb5851217fcdea8767c183e62 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 26 Mar 2019 16:11:40 -0500 Subject: add energy dependent number of shower photons This commit updates the code to calculate the number of Cerenkov photons from secondary particles produced in an electromagnetic shower from electrons to use an energy dependent formula I fit to data simulated with RAT-PAC. --- src/electron.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/electron.h') diff --git a/src/electron.h b/src/electron.h index 98201b8..cc550a7 100644 --- a/src/electron.h +++ b/src/electron.h @@ -19,13 +19,7 @@ #include /* for size_t */ -/* Number of photons in the range 200 nm - 800 nm generated per MeV of energy - * lost to radiation for electrons. - * - * FIXME: This is just a rough estimate, should use an energy dependent - * quantity from simulation. */ -#define ELECTRON_PHOTONS_PER_MEV 400.0 - +double electron_get_shower_photons(double T0, double rad); void electron_get_position_distribution_parameters(double T0, double *a, double *b); double electron_get_angular_distribution_alpha(double T0); double electron_get_angular_distribution_beta(double T0); -- cgit