Go to the documentation of this file. 1 #ifndef __JPHYSICS__JGEANX__
2 #define __JPHYSICS__JGEANX__
54 const double y =
evaluate(-1.0, +1.0);
82 const double xmax)
const
97 const double x = fabs(ct - 1.0/
n);
99 return exp(
b * pow(x,
a));
112 const double xmax)
const
114 const double x = 1.0 /
n;
116 const double ai = 1.0 /
a;
117 const double bi = 1.0 /
b;
119 const double xl = pow(fabs(x - xmin),
a) * -
b;
120 const double xr = pow(fabs(x - xmax),
a) * -
b;
122 const double gp = TMath::Gamma(ai);
124 double yl = TMath::Gamma(ai, xl) * gp;
125 double yr = TMath::Gamma(ai, xr) * gp;
132 return ai * pow(-bi,ai) * (yl + yr);
static const JGeanx geanx(0.35, -5.40)
Function object for the number of photons from EM-shower as a function of emission angle.
double evaluate(const double xmin, const double xmax) const
Integral.
JGeanx(const double __a, const double __b, const double __n=getIndexOfRefractionPhase())
Constructor.
double operator()(const double ct) const
Number of photons from EM-shower as a function of emission angle.
Auxiliary classes and methods for calculation of PDF and muon energy loss.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const double n
index of refraction
Probability density function of photon emission from EM-shower as a function of cosine of the emissio...
double c
normalisation constant
double operator()(const double xmin, const double xmax) const
Integral number of photons from EM-shower between two emission angles.
double evaluate(const double ct) const
Functional dependence.