27#ifndef GMODELSPATIALRADIAL_HPP
28#define GMODELSPATIALRADIAL_HPP
71 virtual double eval(
const double& theta,
74 const bool& gradients =
false)
const = 0;
79 const double& margin = 0.0)
const = 0;
88 const bool& gradients =
false)
const;
174 const double& radius)
const
Model parameter class interface definition.
Abstract spatial model base class interface definition.
Sky direction class interface definition.
double norm(const GVector &vector)
Computes vector norm.
Class that handles energies in a unit independent way.
Abstract radial spatial model base class.
virtual bool is_energy_dependent(void) const
Signals whether radial model is energy dependent.
virtual std::string classname(void) const =0
Return class name.
void free_members(void)
Delete class members.
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const =0
double m_last_lon
Last longitude.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const =0
bool is_celestial(void) const
Check if model holds celestial coordinates.
void copy_members(const GModelSpatialRadial &model)
Copy class members.
double m_last_lat
Last latitude.
virtual void clear(void)=0
Clear object.
GModelPar m_lon
Right Ascension or Galactic longitude (deg)
virtual void write(GXmlElement &xml) const
Write model into XML element.
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual bool is_time_dependent(void) const
Signals whether radial model is time dependent.
virtual void set_region(void) const =0
virtual GModelSpatialRadial * clone(void) const =0
Clones object.
std::string coordsys(void) const
Return coordinate system.
GModelSpatialRadial(void)
Void constructor.
void init_members(void)
Initialise class members.
GSkyDir m_dir
Sky direction representing parameters.
virtual double theta_max(void) const =0
virtual std::string print(const GChatter &chatter=NORMAL) const =0
Print content of object.
virtual double eval(const double &theta, const GEnergy &energy, const GTime &time, const bool &gradients=false) const =0
virtual double mc_norm(const GSkyDir &dir, const double &radius) const
Return normalization of radial source for Monte Carlo simulations.
virtual GClassCode code(void) const
Return class code.
virtual GModelSpatialRadial & operator=(const GModelSpatialRadial &model)
Assignment operator.
const GSkyDir & dir(void) const
Return position of radial spatial model.
GModelPar m_lat
Declination or Galactic latitude (deg)
virtual ~GModelSpatialRadial(void)
Destructor.
Abstract spatial model base class.
const std::string & name(void) const
Return parameter name.
Class that handles photons.
Random number generator class.
double dist_deg(const GSkyDir &dir) const
Compute angular distance between sky directions in degrees.
Abstract interface for the sky region class.