27 #ifndef GMODELSPATIALRADIALGAUSS_HPP
28 #define GMODELSPATIALRADIALGAUSS_HPP
61 const std::string&
coordsys =
"CEL");
70 virtual void clear(
void);
72 virtual std::string
classname(
void)
const;
73 virtual double eval(
const double& theta,
76 const bool& gradients =
false)
const;
81 const double& margin = 0.0)
const;
88 double sigma(
void)
const;
89 void sigma(
const double& sigma);
96 void update(
const bool& gradients)
const;
119 return (
"GModelSpatialRadialGauss");
double sigma(void) const
Return Gaussian sigma.
virtual double theta_max(void) const
Return maximum model radius (in radians)
Abstract radial spatial model base class interface definition.
std::string coordsys(void) const
Return coordinate system.
Random number generator class.
virtual void write(GXmlElement &xml) const
Write model into XML element.
GModelPar m_sigma
Gaussian width (deg)
void copy_members(const GModelSpatialRadialGauss &model)
Copy class members.
virtual GModelSpatialRadialGauss * clone(void) const
Clone radial Gauss model.
Model parameter class interface definition.
Class that handles photons.
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Returns MC sky direction.
double m_inv_sigma2_rad
sigma(rad)^-2
Abstract interface for the sky region class.
const GSkyDir & dir(void) const
Return position of radial spatial model.
GModelSpatialRadialGauss(void)
Void constructor.
double m_g_theta_norm
sigma(rad)^-2 deg2rad
double m_value_norm
(2pi sigma(rad))^-2
double m_g_sigma_norm
sigma(rad)^-1 sigma_scale deg2rad
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual void set_region(void) const
Set boundary sky region.
virtual double eval(const double &theta, const GEnergy &energy, const GTime &time, const bool &gradients=false) const
Evaluate Gaussian source model.
std::string type(void) const
Return model type.
virtual std::string classname(void) const
Return class name.
void init_members(void)
Initialise class members.
double value(void) const
Return parameter value.
double m_last_sigma
Last Gaussian sigma.
virtual GModelSpatialRadialGauss & operator=(const GModelSpatialRadialGauss &model)
Assignment operator.
Abstract radial spatial model base class.
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.
Radial Gaussian model class.
void update(const bool &gradients) const
Update precomputation cache.
virtual void clear(void)
Clear radial Gauss model.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print Gaussian source information.
Class that handles energies in a unit independent way.
virtual ~GModelSpatialRadialGauss(void)
Destructor.