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