Go to the documentation of this file. 1 #ifndef __JSIRENE__JCDFTABLE1D__
2 #define __JSIRENE__JCDFTABLE1D__
37 template<
class JArgument_t,
class JResult_t>
66 template<
class JCDF_t,
class JCDFMaplist_t,
class JCDFDistance_t>
68 const int number_of_bins,
69 const double safety_factor = 2.0)
80 const JPDFTransformer_t&
object = dynamic_cast<const JPDFTransformer_t&>(*(cdf.
transformer));
84 catch(
const std::exception& error) {
97 const double R =
j->getX();
102 for (JOmega3D::const_iterator dir = omega.begin(); dir != omega.end(); ++dir) {
103 y += cdf.
getNPE(R, dir->getTheta(), fabs(dir->getPhi()));
108 j->getY() = safety_factor * y / W;
123 const double buffer[] = { R };
125 const double y = this->
evaluate(buffer);
double getNPE(const double R) const
Get number of photo-electrons.
Multi-dimensional CDF table for arrival time of Cherenkov light.
double getNPE(const argument_type x,...) const
Get number of photo-electrons.
JMultiQuantile_t intensity
JLANG::JSharedPointer< transformer_type > transformer
Auxiliary classes and methods for calculation of PDF and muon energy loss.
Data structure for direction in three dimensions.
JMultiMapTransformer< 1, argument_type > transformer_type
JCDFTable1D()
Default constructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JPolintFunction1D< 1, JElement2D_t, JGridCollection > JFunction1D_t
JElement2D< argument_type, result_type > JElement2D_t
JCDFTable1D(const JCDFTable< JCDF_t, JCDFMaplist_t, JCDFDistance_t > &cdf, const int number_of_bins, const double safety_factor=2.0)
Constructor.
JArgument_t argument_type
Auxiliary classes and methods for 3D geometrical objects and operations.
JLANG::JSharedPointer< transformer_type > transformer
Direction set covering (part of) solid angle.
The template JSharedPointer class can be used to share a pointer to an object.
Custom class for CDF table in 1 dimension.