1 #ifndef __JPHYSICS__JGEANT_T__
2 #define __JPHYSICS__JGEANT_T__
14 namespace JPP {
using namespace JPHYSICS; }
48 JGeantFunction1D_t::compile();
67 const double ct)
const
71 return y * (
a0 -
a1*
n);
86 const double xmax)
const
88 const double x_min = std::max(xmin - 1.0/n,
buffer. begin()->getX());
89 const double x_max = std::min(xmax - 1.0/n,
buffer.rbegin()->getX());
93 return y * (
a0 -
a1*
n);
127 out << static_cast<const JGeantFunction1D_t&>(
geant);
friend JWriter & operator<<(JWriter &out, const JGeant_t &geant)
Write geant to output.
virtual void compile()
Function compilation.
Interface for binary output.
double operator()(const double n, const double xmin, const double xmax) const
Integral number of photons from EM-shower between two emission angles.
double a1
slope of the normalisation dependence
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
friend JReader & operator>>(JReader &in, JGeant_t &geant)
Read geant from input.
static const JGeant geant(geanx, 0.0001)
Function object for the number of photons from EM-shower as a function of emission angle...
double operator()(const double n, const double ct) const
Number of photons from EM-shower as a function of emission angle.
double a0
offset of the normalisation dependence
Interface for binary input.
Base class for the probability density function of photon emission from EM-shower as a function of th...
JGeant_t()
Default constructor.
JGeantFunction1D_t buffer
alias put_queue eval echo n
JTOOLS::JGridPolint1Function1D_t JGeantFunction1D_t