27#ifndef GMODELSPATIALRADIALRING_HPP
28#define GMODELSPATIALRADIALRING_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;
92 double width(
void)
const;
126 return (
"GModelSpatialRadialRing");
Model parameter class interface definition.
Abstract radial spatial model base class interface definition.
Class that handles energies in a unit independent way.
virtual ~GModelSpatialRadialRing(void)
Destructor.
virtual GModelSpatialRadialRing * clone(void) const
Clone radial ring model.
GModelSpatialRadialRing(void)
Void constructor.
virtual void clear(void)
Clear radial ring model.
virtual std::string classname(void) const
Return class name.
virtual double theta_max(void) const
Return maximum model radius (in radians)
virtual std::string print(const GChatter &chatter=NORMAL) const
Print information.
double m_norm
Normalization.
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual GModelSpatialRadialRing & operator=(const GModelSpatialRadialRing &model)
Assignment operator.
GModelPar m_radius
Ring inner radius (degrees)
virtual void set_region(void) const
Set boundary sky region.
virtual void write(GXmlElement &xml) const
Write model into XML element.
double width(void) const
Return ring width.
double m_cos_outer_radius_rad
Cosine of outer radius in radians.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const
Checks whether model contains specified sky direction.
double m_last_width
Last ring width.
double m_outer_radius_rad
Outer radius in radians.
virtual double theta_min(void) const
Return minimum model radius (in radians)
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Return MC sky direction.
void free_members(void)
Delete class members.
void update(void) const
Update precomputation cache.
void copy_members(const GModelSpatialRadialRing &model)
Copy class members.
double m_cos_inner_radius_rad
Cosine of inner radius in radians.
double radius(void) const
Return ring inner radius.
virtual double eval(const double &theta, const GEnergy &energy, const GTime &time, const bool &gradients=false) const
Evaluate function (in units of sr^-1)
double m_inner_radius_rad
Inner radius in radians.
GModelPar m_width
Ring width (degrees)
double m_last_radius
Last ring radius.
void init_members(void)
Initialise class members.
Abstract radial spatial model base class.
std::string coordsys(void) const
Return coordinate system.
const GSkyDir & dir(void) const
Return position of radial spatial model.
double value(void) const
Return parameter value.
Class that handles photons.
Random number generator class.
Abstract interface for the sky region class.