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