1 #ifndef __JAANET__JDIFFUSEFLUXHELPER__
2 #define __JAANET__JDIFFUSEFLUXHELPER__
74 THROW(
JNullPointerException,
"JDiffuseFluxHelper::getDiffuseFlux(): Cannot convert event-weight factor to diffuse flux function.");
89 const double costh)
const
93 return flux(type, log10E, costh);
107 const double costh)
const
123 const double costh)
const
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for null pointer operation.
Extensions to Evt data format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Helper class for diffuse flux factor.
JDiffuseFlux & getDiffuseFlux() const
Get reference to diffuse flux function.
double operator()(const int type, const double log10E, const double costh) const
Get flux for given particle PDG-identifier, energy and zenith-angle.
double getFlux(const int type, const double log10E, const double costh) const
Get flux for given particle PDG-identifier, energy and zenith-angle.
JFluxHelper::pointer_type pointer_type
double getFactor(const int type, const double log10E, const double costh) const
Get flux for given particle PDG-identifier, energy and zenith-angle.
JDiffuseFluxHelper(const pointer_type &flux)
Constructor.
JDiffuseFluxHelper(const JDiffuseFlux &flux)
Constructor.
JDiffuseFluxHelper()
Default constructor.
Low-level interface for diffuse fluxes.
void configure(const pointer_type &p)
Configure event-weight factor.
JEvtWeightFactor & getFactor() const
Get reference to event-weight factor.
Abstract base class for specifiable event-weight factors.
Helper class for flux function.
JEvtWeightFactorHelper::pointer_type pointer_type