1 #ifndef __JPHYSICS__JGEANT__
2 #define __JPHYSICS__JGEANT__
19 namespace JPP {
using namespace JPHYSICS; }
48 const double dx = 0.0001)
52 const double n0 = geanx.
n - 0.02;
53 const double n1 = geanx.
n + 0.02;
55 const JGeanx g0(geanx.
a, geanx.
b, n0);
58 const double y0 = g0.
evaluate(-1.0, +1.0);
59 const double y1 = g1.
evaluate(-1.0, +1.0);
61 const double c = 1.0 / (y0 * 2*
PI);
65 for (
double x = -2.0;
x < 1.0;
x += dx) {
73 this->
a1 = (y1 - y0) / y0 / (n1 - n0);
74 this->
a0 = 1.0 +
a1*n0;
Interface for binary output.
Base class for photon emission profile EM-shower.
double a1
slope of the normalisation dependence
static const JGeant geant(geanx, 0.0001)
Function object for the number of photons from EM-shower as a function of emission angle...
JGeant(const JGeanx &geanx, const double dx=0.0001)
Constructor.
double a0
offset of the normalisation dependence
const double n
index of refraction
static const double PI
Mathematical constants.
Interface for binary input.
JGeant()
Default constructor.
Base class for the probability density function of photon emission from EM-shower as a function of th...
Photon emission profile EM-shower.
Probability density function of photon emission from EM-shower as a function of cosine of the emissio...
static const JGeanx geanx(0.35,-5.40)
Function object for the number of photons from EM-shower as a function of emission angle...
Function object for the probability density function of photon emission from EM-shower as a function ...
double evaluate(const double ct) const
Functional dependence.
Double_t g1(const Double_t x)
Function.