27 #ifndef GMODELSPATIALELLIPTICALGAUSS_HPP
28 #define GMODELSPATIALELLIPTICALGAUSS_HPP
64 const std::string&
coordsys =
"CEL");
73 virtual void clear(
void);
75 virtual std::string
classname(
void)
const;
76 virtual double eval(
const double& theta,
77 const double& posangle,
80 const bool& gradients =
false)
const;
85 const double& margin = 0.0)
const;
129 return (
"GModelSpatialEllipticalGauss");
double m_last_major
Last semi-major axis.
double m_sinpos2
squared sine of position angle
virtual GModelSpatialEllipticalGauss * clone(void) const
Clone elliptical Gaussian model.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const
Checks whether model contains specified sky direction.
virtual void write(GXmlElement &xml) const
Write model into XML element.
Abstract elliptical spatial model base class.
GModelSpatialEllipticalGauss(void)
Void constructor.
virtual GModelSpatialEllipticalGauss & operator=(const GModelSpatialEllipticalGauss &model)
Assignment operator.
virtual void clear(void)
Clear elliptical Gaussian model.
double m_minor2
square of minor axis
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 void read(const GXmlElement &xml)
Read model from XML element.
double m_minor_rad
Minor axis in radians.
const GSkyDir & dir(void) const
Return position of elliptical spatial model.
virtual std::string classname(void) const
Return class name.
Random number generator class.
double m_cospos2
squared cosine of position angle
double m_major2
square of major axis
virtual void set_region(void) const
Set boundary sky region.
double m_term2
Help term 2.
Model parameter class interface definition.
Class that handles photons.
void update(void) const
Update precomputation cache.
Abstract interface for the sky region class.
double m_norm
Normalization.
double m_last_minor
Last semi-minor axis.
double m_sin2pos
sine of twice the position angle
double m_term3
Help term 3.
void init_members(void)
Initialise class members.
std::string coordsys(void) const
Return coordinate system.
std::string type(void) const
Return model type.
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Returns MC sky direction.
Abstract elliptical spatial model base class interface definition.
double posangle(void) const
Return Position Angle of model.
double m_term1
Help term 1.
double m_last_posangle
Last position angle.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print information.
void copy_members(const GModelSpatialEllipticalGauss &model)
Copy class members.
virtual ~GModelSpatialEllipticalGauss(void)
Destructor.
void free_members(void)
Delete class members.
double m_major_rad
Major axis in radians.
Class that handles energies in a unit independent way.
virtual double theta_max(void) const
Return maximum model radius (in radians)