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