Kariba
Loading...
Searching...
No Matches
GammaRays.cpp File Reference
#include <array>
#include <cmath>
#include <gsl/gsl_integration.h>
#include "kariba/GammaRays.hpp"
#include "kariba/constants.hpp"

Namespaces

namespace  kariba
 

Functions

double kariba::set_ntilde (double p)
 The following are common for γ rays/electrons/neutrinos from pp:
 
double kariba::target_protons (double ntot_prot, double nwind, double plfrac)
 
double kariba::sigma_pp (double Ep)
 
double kariba::proton_dist (double gpmin, double Ep, double Epcode_max, gsl_spline *spline_Jp, gsl_interp_accel *acc_Jp)
 
double kariba::gspec_pp (double Ep, double y)
 
void kariba::sum_photons (size_t nphot, std::vector< double > &en_perseg, std::vector< double > &lum_perseg, size_t ntarg, const std::vector< double > &targ_en, const std::vector< double > &targ_lum)
 Adds up in the lum_perseg the target photon luminosity (in erg/sec/Hz)
 
void kariba::sum_photons (size_t nphot, const std::vector< double > &en_perseg, std::vector< double > &lum_perseg, size_t ntarg, const std::vector< double > &targ_en, const std::vector< double > &targ_lum)
 
double kariba::Hetag (double x, void *p)
 funtions for γ rays from pγ
 
double kariba::colliding_protons (gsl_spline *spline_Jp, gsl_interp_accel *acc_Jp, double gp_min, double gp_max, double Ep)
 The following are common for γ rays/electrons/neutrinos from pγ:
 
double kariba::photons_jet (double eta, double Ep, gsl_spline *spline_ng, gsl_interp_accel *acc_ng, double nu_min, double nu_max)
 
double kariba::PhiFunc_gamma (double eta, double eta0, double x)
 
void kariba::tables_photomeson_gamma (double &s, double &delta, double &Beta, double xeta)
 The tables from KA08 for photomeson that give s,δ and B.