27 #ifndef GMODELSPATIALPOINTSOURCE_HPP
28 #define GMODELSPATIALPOINTSOURCE_HPP
64 const std::string&
coordsys =
"CEL");
67 const std::string&
coordsys =
"CEL");
76 virtual void clear(
void);
78 virtual std::string
classname(
void)
const;
81 const bool& gradients =
false)
const;
86 const double& radius)
const;
88 const double& margin = 0.0)
const;
130 return (
"GModelSpatialPointSource");
161 const double& radius)
const
void free_members(void)
Delete class members.
double dist_deg(const GSkyDir &dir) const
Compute angular distance between sky directions in degrees.
double m_last_lat
Last latitude.
std::string coordsys(void) const
Return coordinate system.
double norm(const GVector &vector)
Computes vector norm.
const std::string & name(void) const
Return parameter name.
const GSkyDir & dir(void) const
Return position of point source.
Sky direction class interface definition.
virtual double mc_norm(const GSkyDir &dir, const double &radius) const
Return normalization of point source for Monte Carlo simulations.
virtual GModelSpatialPointSource * clone(void) const
Clone point source model.
virtual double eval(const GPhoton &photon, const bool &gradients=false) const
Evaluate function.
Abstract spatial model base class interface definition.
Random number generator class.
GModelPar m_lon
Right Ascension or Galactic longitude (deg)
double m_last_lon
Last longitude.
virtual void clear(void)
Clear point source model.
void copy_members(const GModelSpatialPointSource &model)
Copy class members.
Model parameter class interface definition.
Class that handles photons.
virtual GClassCode code(void) const
Return class code.
Abstract interface for the sky region class.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print point source information.
virtual ~GModelSpatialPointSource(void)
Destructor.
virtual void write(GXmlElement &xml) const
Write model into XML element.
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Returns MC sky direction.
virtual double flux(const GSkyRegion ®ion, const GEnergy &srcEng=GEnergy(), const GTime &srcTime=GTime()) const
Returns model flux integrated in sky region.
virtual void read(const GXmlElement &xml)
Read model from XML element.
bool is_celestial(void) const
Check if model holds celestial coordinates.
std::string type(void) const
Return model type.
Point source spatial model.
const GSkyRegion * region(void) const
Return boundary sky region.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const
Checks where model contains specified sky direction.
GSkyDir m_dir
Sky direction representing parameters.
GModelSpatialPointSource(void)
Void constructor.
void init_members(void)
Initialise class members.
Abstract spatial model base class.
virtual void set_region(void) const
Set boundary sky region.
virtual GModelSpatialPointSource & operator=(const GModelSpatialPointSource &model)
Assignment operator.
virtual std::string classname(void) const
Return class name.
GModelPar m_lat
Declination or Galactic latitude (deg)
Class that handles energies in a unit independent way.