diff options
-rw-r--r-- | src/likelihood.c | 3 | ||||
-rw-r--r-- | src/muon.c | 23 | ||||
-rw-r--r-- | src/muon.h | 1 |
3 files changed, 25 insertions, 2 deletions
diff --git a/src/likelihood.c b/src/likelihood.c index 245c20c..3b37bd5 100644 --- a/src/likelihood.c +++ b/src/likelihood.c @@ -188,8 +188,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; - /* FIXME: add shower photons for muons. */ - p->shower_photons = 0.0; + p->shower_photons = muon_get_shower_photons(T0, rad); /* Calculate the normalization constant for the angular distribution. */ norm = electron_get_angular_pdf_norm(p->delta_ray_a, p->delta_ray_b, 1/avg_index_d2o); @@ -57,6 +57,29 @@ static gsl_spline *spline_range; static const double MUON_CRITICAL_ENERGY_H2O = 1029.0e6; static const double MUON_CRITICAL_ENERGY_D2O = 967.0e3; +/* Returns the average number of Cerenkov photons in the range 200-800 nm + * produced by secondary particles in a muon shower. + * + * This comes from fitting the ratio # shower photons/rad loss to the function: + * + * c0*(1-exp(-T/c1)) + * + * I don't really have any good theoretical motivation for this. My initial + * thought was that the number of photons should be roughly proportional to the + * energy lost due to radiation which is why I chose to fit the ratio. + * + * This functional form just happened to fit the ratio as a function of energy + * pretty well from 300 MeV to 10 GeV. At 10 GeV, it looks like the ratio is + * starting to decrease so a different form for energies past that is probably + * needed. + * + * `T0` is the initial kinetic energy of the electron in MeV and `rad` is the + * energy lost due to radiation in MeV. */ +double muon_get_shower_photons(double T0, double rad) +{ + return rad*(9.288929e+03*(1 - exp(-T0/8.403863e+02))); +} + void muon_get_position_distribution_parameters(double T0, double *a, double *b) { /* Computes the gamma distribution parameters describing the longitudinal @@ -30,6 +30,7 @@ * FIXME: Actually determine what this is. */ #define MUON_PHOTONS_PER_MEV 7368.0 +double muon_get_shower_photons(double T0, double rad); void muon_get_position_distribution_parameters(double T0, double *a, double *b); double muon_get_angular_distribution_alpha(double T0); double muon_get_angular_distribution_beta(double T0); |