1 #ifndef __JAANET__JPOWERLAWFLUX__
2 #define __JAANET__JPOWERLAWFLUX__
126 std::istream&
read(std::istream& in)
override final
130 streampos pos = in.tellg();
162 template<
class JPowerLawFlux_t>
Utility class to parse parameter values.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
Utility class to parse parameter values.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Extensions to Evt data format.
const Trk & get_primary(const Evt &evt)
Get primary.
T pow(const T &x, const double y)
Power .
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
static JEquationParameters & getEquationParameters()
Get equation parameters.
static const char *const getTypeKey()
Get type keyword.
Auxiliary class for I/O of power-law flux.
JPowerLawFluxHelper(JPowerLawFlux_t &flux, const JEquationParameters &eqpars)
Constructor.
Example function object for computing power-law flux.
double spectralIndex
spectral index >= 0
double normalisation
normalisation [GeV * m^-2 * sr^-1 * s^-1]
JProperties getProperties(const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) const override final
Get properties of this class.
double getFactor(const Evt &evt) const override final
Get flux of given event.
bool equals(const JPowerLawFlux &object) const
Check if this flux is identical to the given flux.
JPowerLawFlux()
Default constructor.
JPowerLawFlux(const double normalisation, const double spectralIndex)
Constructor.
std::istream & read(std::istream &in) override final
Stream input.
bool is_valid() const override final
Check whether this power-law flux is valid.
JProperties getProperties(const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) override final
Get properties of this class.
Template class for object cloning.
Template definition of auxiliary base class for comparison of data structures.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.