28 #ifndef GMODELSPATIALRADIALGENERALGAUSS_HPP
29 #define GMODELSPATIALRADIALGENERALGAUSS_HPP
62 const std::string&
coordsys =
"CEL");
71 virtual void clear(
void);
73 virtual std::string
classname(
void)
const;
74 virtual double eval(
const double& theta,
77 const bool& gradients =
false)
const;
82 const double& margin = 0.0)
const;
90 void radius(
const double& radius);
91 double ridx(
void)
const;
92 void ridx(
const double& ridx);
123 return (
"GModelSpatialRadialGeneralGauss");
virtual void clear(void)
Clear radial Gauss model.
GModelPar m_ridx
Reciprocal of exponent of the radial profile.
virtual ~GModelSpatialRadialGeneralGauss(void)
Destructor.
virtual void read(const GXmlElement &xml)
Read model from XML element.
void update(void) const
Update precomputation cache.
Abstract radial spatial model base class interface definition.
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Returns MC sky direction.
virtual void set_region(void) const
Set boundary sky region.
std::string coordsys(void) const
Return coordinate system.
Random number generator class.
GModelPar m_radius
Gaussian width (deg)
double ridx(void) const
Return ridx.
Model parameter class interface definition.
Class that handles photons.
void init_members(void)
Initialise class members.
Abstract interface for the sky region class.
const GSkyDir & dir(void) const
Return position of radial spatial model.
virtual GModelSpatialRadialGeneralGauss & operator=(const GModelSpatialRadialGeneralGauss &model)
Assignment operator.
virtual double theta_max(void) const
Return maximum model radius (in radians)
double m_inv_radius_rad
radius(rad)^-1
double m_last_radius
Last radius.
virtual GModelSpatialRadialGeneralGauss * clone(void) const
Clone radial Gauss model.
double radius(void) const
Return radius.
double m_inv_ridx
Spatial profile index.
double m_last_ridx
Last reciprocal radial index.
void free_members(void)
Delete class members.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const
Checks where model contains specified sky direction.
double value(void) const
Return parameter value.
Generalized radial Gaussian model class.
virtual std::string classname(void) const
Return class name.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print generalised radial Gaussian source information.
void copy_members(const GModelSpatialRadialGeneralGauss &model)
Copy class members.
Abstract radial spatial model base class.
virtual void write(GXmlElement &xml) const
Write model into XML element.
double m_value_norm
1/(2pi radius(rad)^2 ridx Gamma(ridx))
GModelSpatialRadialGeneralGauss(void)
Void constructor.
virtual double eval(const double &theta, const GEnergy &energy, const GTime &time, const bool &gradients=false) const
Evaluate Generalised Gaussian source model.
Class that handles energies in a unit independent way.