1 #ifndef __JNPETABLE1D__
2 #define __JNPETABLE1D__
19 namespace JPP {
using namespace JPHYSICS; }
36 template<
class JFunction1D_t>
58 template<
class JPDF_t,
class JPDFMaplist_t,
class JPDFDistance_t>
61 using namespace JTOOLS;
62 using namespace JGEOMETRY3D;
70 for (
typename JTransformableMultiFunction_t::const_iterator i = input.begin(); i != input.end(); ++i) {
72 const double R = i->getX();
78 for (JOmega3D::const_iterator dir = omega.begin(); dir != omega.end(); ++dir) {
79 y += intensity(R, dir->getTheta(), fabs(dir->getPhi()));
82 this->put(R,y/omega.size());
86 this->setExceptionHandler(
new typename JFunction1D_t::JDefaultResult(
JMATH::zero));
JFunction1D_t::argument_type argument_type
JNPETable1D()
Default constructor.
JFunction1D_t::result_type result_type
The elements in a collection are sorted according to their abscissa values and a given distance opera...
Custom class for the integrated values of the PDF of the arrival time of Cherenkov light...
static const JZero zero
Function object to assign zero value.
Direction set covering (part of) solid angle.
then usage $script[distance] fi case set_variable R
JNPETable1D(const JTransformableMultiFunction< JPDF_t, JPDFMaplist_t, JPDFDistance_t > &input)
Constructor.
Custom class for integrated values of the PDF of the arrival time of Cherenkov light.