27#ifndef GMODELSPECTRALCONST_HPP
28#define GMODELSPECTRALCONST_HPP
72 virtual void clear(
void);
74 virtual std::string
classname(
void)
const;
75 virtual std::string
type(
void)
const;
78 const bool& gradients =
false)
const;
93 double value(
void)
const;
116 return (
"GModelSpectralConst");
Energy value class definition.
Model parameter class interface definition.
Abstract spectral model base class interface definition.
Class that handles energies in a unit independent way.
Constant spectral model class.
virtual std::string classname(void) const
Return class name.
double value(void) const
Return model value.
GModelPar m_norm
Normalization factor.
void free_members(void)
Delete class members.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print spectral model information.
virtual void clear(void)
Clear constant spectral model.
virtual std::string type(void) const
Return model type.
virtual GModelSpectralConst & operator=(const GModelSpectralConst &model)
Assignment operator.
virtual double eflux(const GEnergy &emin, const GEnergy &emax) const
Returns model energy flux between [emin, emax] (erg/cm2/s)
virtual GModelSpectralConst * clone(void) const
Clone constant spectral model.
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual ~GModelSpectralConst(void)
Destructor.
std::string m_type
Model type.
GModelSpectralConst(void)
Void constructor.
virtual void write(GXmlElement &xml) const
Write model into XML element.
void init_members(void)
Initialise class members.
virtual GEnergy mc(const GEnergy &emin, const GEnergy &emax, const GTime &time, GRan &ran) const
Returns MC energy between [emin, emax].
virtual double eval(const GEnergy &srcEng, const GTime &srcTime=GTime(), const bool &gradients=false) const
Evaluate model value.
virtual double flux(const GEnergy &emin, const GEnergy &emax) const
Returns model photon flux between [emin, emax] (ph/cm2/s)
void copy_members(const GModelSpectralConst &model)
Copy class members.
Abstract spectral model base class.
double value(void) const
Return parameter value.
Random number generator class.