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;
 
  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);
 
JGeanx(const double __a, const double __b, const double __n=getIndexOfRefraction())
Constructor. 
 
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.