1 #ifndef __JPHYSICS__JGEANX__ 
    2 #define __JPHYSICS__JGEANX__ 
   16 namespace JPP { 
using namespace JPHYSICS; }
 
   48       const double y = 
evaluate(-1.0, +1.0);
 
   76                       const double xmax)
 const 
   91       const double x = fabs(ct - 1.0/
n);
 
  106                     const double xmax)
 const 
  111       const double x  = 1.0 / 
n;
 
  113       const double ai = 1.0 / 
a;
 
  114       const double bi = 1.0 / 
b;
 
  116       const double xl = 
pow(fabs(
x - xmin), 
a) * -
b;
 
  117       const double xr = 
pow(fabs(
x - xmax), 
a) * -
b;
 
  119       const double gp = tgamma(ai);
 
  121       double yl = 
Gamma(ai, xl) * gp;
 
  122       double yr = 
Gamma(ai, xr) * gp;
 
  129       return ai * 
pow(-bi,ai) * (yl + yr);
 
Auxiliary methods for mathematics. 
 
double Gamma(const double a, const double x)
Incomplete gamma function. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable STRING $argv[2] set_array QUANTILES set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable MODULE `getModule -a $DETECTOR -L "$STRING 0"` source JAcoustics.sh -- typeset -A TRIPODS get_tripods $WORKDIR/tripod.txt TRIPODS XMEAN
 
double evaluate(const double xmin, const double xmax) const 
Integral. 
 
T pow(const T &x, const double y)
Power . 
 
const double n
index of refraction 
 
static const double PI
Mathematical constants. 
 
double getIndexOfRefractionPhase()
Get average index of refraction of water corresponding to phase velocity. 
 
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.