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