1 #ifndef __JPHYSICS__JGEANX__
2 #define __JPHYSICS__JGEANX__
17 namespace JPP {
using namespace JPHYSICS; }
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;
132 return ai * pow(-bi,ai) * (yl + yr);
double Gamma(const double a, const double x)
Incomplete gamma function.
double evaluate(const double xmin, const double xmax) const
Integral.
const double n
index of refraction
double c
normalisation constant
Probability density function of photon emission from EM-shower as a function of cosine of the emissio...
double operator()(const double ct) const
Number of photons from EM-shower as a function of emission angle.
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 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.
JGeanx(const double __a, const double __b, const double __n=getIndexOfRefractionPhase())
Constructor.
then set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable OUTPUT_FILE histogram.root JHistogram1D -o $WORKDIR/$OUTPUT_FILE -F "$FORMULA" -