#ifndef __JAANET__JCONSTANTFLUX__ #define __JAANET__JCONSTANTFLUX__ #include "JAAnet/JFlux.hh" #include "JAAnet/JEvtWeightFactorConstant.hh" /** * \author bjung */ namespace JAANET {} namespace JPP { using namespace JAANET; } namespace JAANET { /** * Function object for constant fluxes. */ struct JConstantFlux final : public JEvtWeightFactorConstant { /** * Default constructor. */ JConstantFlux() : JEvtWeightFactorConstant() {} /** * Constructor. * * \param flux [GeV * m^-2 * sr^-1 * s^-1] */ JConstantFlux(const double flux) : JEvtWeightFactorConstant(flux) {} }; } #endif