27#ifndef GMODELSPATIALELLIPTICAL_HPP
28#define GMODELSPATIALELLIPTICAL_HPP
71 virtual double eval(
const double& theta,
75 const bool& gradients =
false)
const = 0;
80 const double& margin = 0.0)
const = 0;
87 const bool& gradients =
false)
const;
242 const double& radius)
const
Model parameter class interface definition.
Abstract spatial model base class interface definition.
Sky direction class interface definition.
@ GMODEL_SPATIAL_ELLIPTICAL
double norm(const GVector &vector)
Computes vector norm.
Class that handles energies in a unit independent way.
Abstract elliptical spatial model base class.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const =0
void init_members(void)
Initialise class members.
virtual std::string classname(void) const =0
Return class name.
void copy_members(const GModelSpatialElliptical &model)
Copy class members.
GModelPar m_semiminor
Semi-minor axis of ellipse (deg)
double semimajor(void) const
Return semi-major axis of ellipse.
virtual GClassCode code(void) const
Return class code.
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 double mc_norm(const GSkyDir &dir, const double &radius) const
Return normalization of elliptical source for Monte Carlo simulations.
virtual ~GModelSpatialElliptical(void)
Destructor.
virtual GModelSpatialElliptical * clone(void) const =0
Clones object.
bool is_celestial(void) const
Check if model holds celestial coordinates.
virtual std::string print(const GChatter &chatter=NORMAL) const =0
Print content of object.
double m_last_lon
Last longitude.
virtual void clear(void)=0
Clear object.
double m_last_lat
Last latitude.
virtual void set_region(void) const =0
GModelPar m_semimajor
Semi-major axis of ellipse (deg)
GModelPar m_lat
Declination or Galactic latitude (deg)
virtual double eval(const double &theta, const double &posangle, const GEnergy &energy, const GTime &time, const bool &gradients=false) const =0
void free_members(void)
Delete class members.
GSkyDir m_dir
Sky direction representing parameters.
double posangle(void) const
Return Position Angle of model.
virtual GModelSpatialElliptical & operator=(const GModelSpatialElliptical &model)
Assignment operator.
GModelPar m_lon
Right Ascension or Galactic longitude (deg)
GModelSpatialElliptical(void)
Void constructor.
const GSkyDir & dir(void) const
Return position of elliptical spatial model.
std::string coordsys(void) const
Return coordinate system.
double semiminor(void) const
Return semi-minor axis of ellipse.
virtual double theta_max(void) const =0
virtual void read(const GXmlElement &xml)
Read model from XML element.
GModelPar m_posangle
Position angle from North, counterclockwise (deg)
Abstract spatial model base class.
double value(void) const
Return parameter value.
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.