27#ifndef GMODELSPATIALRADIALDISK_HPP
28#define GMODELSPATIALRADIALDISK_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;
118 return (
"GModelSpatialRadialDisk");
Model parameter class interface definition.
Abstract radial spatial model base class interface definition.
Class that handles energies in a unit independent way.
double radius(void) const
Return disk radius.
void copy_members(const GModelSpatialRadialDisk &model)
Copy class members.
virtual ~GModelSpatialRadialDisk(void)
Destructor.
GModelPar m_radius
Disk radius (degrees)
void update(void) const
Update precomputation cache.
virtual void write(GXmlElement &xml) const
Write model into XML element.
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Return MC sky direction.
void free_members(void)
Delete class members.
virtual void clear(void)
Clear radial disk model.
double m_norm
Normalization.
virtual double eval(const double &theta, const GEnergy &energy, const GTime &time, const bool &gradients=false) const
Evaluate function (in units of sr^-1)
virtual std::string print(const GChatter &chatter=NORMAL) const
Print information.
double m_last_radius
Last disk radius.
virtual GModelSpatialRadialDisk & operator=(const GModelSpatialRadialDisk &model)
Assignment operator.
virtual void set_region(void) const
Set boundary sky region.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const
Checks where model contains specified sky direction.
double m_radius_rad
Radius in radians.
virtual GModelSpatialRadialDisk * clone(void) const
Clone radial disk model.
virtual std::string classname(void) const
Return class name.
virtual double theta_max(void) const
Return maximum model radius (in radians)
virtual void read(const GXmlElement &xml)
Read model from XML element.
GModelSpatialRadialDisk(void)
Void constructor.
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.
std::string type(void) const
Return model type.
double value(void) const
Return parameter value.
Class that handles photons.
Random number generator class.
Abstract interface for the sky region class.