27 #ifndef GMODELSPATIALELLIPTICALDISK_HPP
28 #define GMODELSPATIALELLIPTICALDISK_HPP
63 const std::string&
coordsys =
"CEL");
72 virtual void clear(
void);
74 virtual std::string
classname(
void)
const;
75 virtual double eval(
const double& theta,
76 const double& posangle,
79 const bool& gradients =
false)
const;
84 const double& margin = 0.0)
const;
116 return (
"GModelSpatialEllipticalDisk");
void update(void) const
Update precomputation cache.
Abstract elliptical spatial model base class.
virtual void set_region(void) const
Set boundary sky region.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print information.
virtual double theta_max(void) const
Return maximum model radius (in radians)
void init_members(void)
Initialise class members.
virtual void write(GXmlElement &xml) const
Write model into XML element.
void copy_members(const GModelSpatialEllipticalDisk &model)
Copy class members.
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Returns MC sky direction.
const GSkyDir & dir(void) const
Return position of elliptical spatial model.
Random number generator class.
virtual void read(const GXmlElement &xml)
Read model from XML element.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const
Checks where model contains specified sky direction.
double m_last_semiminor
Last semi-minor axis.
void free_members(void)
Delete class members.
Model parameter class interface definition.
Class that handles photons.
double semiminor(void) const
Return semi-minor axis of ellipse.
virtual std::string classname(void) const
Return class name.
virtual GModelSpatialEllipticalDisk * clone(void) const
Clone elliptical disk model.
Abstract interface for the sky region class.
virtual void clear(void)
Clear elliptical disk model.
double m_last_semimajor
Last semi-major axis.
GModelSpatialEllipticalDisk(void)
Void constructor.
double m_norm
Normalization.
std::string coordsys(void) const
Return coordinate system.
double m_semimajor_rad
Radius in radians.
Abstract elliptical spatial model base class interface definition.
double posangle(void) const
Return Position Angle of model.
virtual double eval(const double &theta, const double &posangle, const GEnergy &energy, const GTime &time, const bool &gradients=false) const
Evaluate function (in units of sr^-1)
virtual GModelSpatialEllipticalDisk & operator=(const GModelSpatialEllipticalDisk &model)
Assignment operator.
virtual ~GModelSpatialEllipticalDisk(void)
Destructor.
double m_semiminor_rad
Radius in radians.
double semimajor(void) const
Return semi-major axis of ellipse.
Class that handles energies in a unit independent way.