aboutsummaryrefslogtreecommitdiff
path: root/src/likelihood.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-03-26 16:11:40 -0500
committertlatorre <tlatorre@uchicago.edu>2019-03-26 16:11:40 -0500
commitc92657e33b81e37eb5851217fcdea8767c183e62 (patch)
treec63e76ad44959ec81fcfb3b52edf73349be56292 /src/likelihood.c
parente4e65e47901f54fec3f8413522eebdd97c6ffe07 (diff)
downloadsddm-c92657e33b81e37eb5851217fcdea8767c183e62.tar.gz
sddm-c92657e33b81e37eb5851217fcdea8767c183e62.tar.bz2
sddm-c92657e33b81e37eb5851217fcdea8767c183e62.zip
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.
Diffstat (limited to 'src/likelihood.c')
-rw-r--r--src/likelihood.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/likelihood.c b/src/likelihood.c
index f0430cf..c53e1fc 100644
--- a/src/likelihood.c
+++ b/src/likelihood.c
@@ -107,7 +107,7 @@ particle *particle_init(int id, double T0, size_t n)
* range here using the dE/dx table instead of reading in the range. */
p->T[n-1] = 0;
- p->shower_photons = rad*ELECTRON_PHOTONS_PER_MEV;
+ p->shower_photons = electron_get_shower_photons(T0, rad);
break;
case IDP_MU_MINUS: