27#ifndef GMODELSPECTRALGAUSS_HPP
28#define GMODELSPECTRALGAUSS_HPP
77 virtual void clear(
void);
79 virtual std::string
classname(
void)
const;
80 virtual std::string
type(
void)
const;
83 const bool& gradients =
false)
const;
97 double norm(
void)
const;
116 const double&
sigma) :
120 double eval(
const double& eng);
142 return (
"GModelSpectralGauss");
Energy value class definition.
Single parameter function abstract base class definition.
Model parameter class interface definition.
Abstract spectral model base class interface definition.
double norm(const GVector &vector)
Computes vector norm.
Class that handles energies in a unit independent way.
double MeV(void) const
Return energy in MeV.
Single parameter function abstract base class.
double m_norm
Normalization.
eflux_kernel(const double &norm, const double &mean, const double &sigma)
double eval(const double &eng)
Kernel for energy flux integration.
Gaussian spectral model class.
GModelPar m_sigma
Gaussian energy width.
virtual std::string classname(void) const
Return class name.
GEnergy mean(void) const
Return mean energy.
GModelPar m_norm
Normalization factor.
virtual double flux(const GEnergy &emin, const GEnergy &emax) const
Returns model photon flux between [emin, emax] (ph/cm2/s)
virtual ~GModelSpectralGauss(void)
Destructor.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print spectral model information.
virtual GEnergy mc(const GEnergy &emin, const GEnergy &emax, const GTime &time, GRan &ran) const
Returns MC energy between [emin, emax].
void init_members(void)
Initialise class members.
virtual void clear(void)
Clear Gaussian spectral model.
GModelPar m_mean
Gaussian mean energy.
GModelSpectralGauss(void)
Void constructor.
void copy_members(const GModelSpectralGauss &model)
Copy class members.
virtual double eval(const GEnergy &srcEng, const GTime &srcTime=GTime(), const bool &gradients=false) const
Evaluate model value.
void free_members(void)
Delete class members.
virtual GModelSpectralGauss * clone(void) const
Clone Gaussian spectral model.
virtual void write(GXmlElement &xml) const
Write model into XML element.
virtual std::string type(void) const
Return model type.
double norm(void) const
Return normalization.
virtual GModelSpectralGauss & operator=(const GModelSpectralGauss &model)
Assignment operator.
virtual void read(const GXmlElement &xml)
Read model from XML element.
void update_eval_cache(const GEnergy &energy) const
virtual double eflux(const GEnergy &emin, const GEnergy &emax) const
Returns model energy flux between [emin, emax] (erg/cm2/s)
GEnergy sigma(void) const
Return energy width.
Abstract spectral model base class.
double value(void) const
Return parameter value.
Random number generator class.