27 #ifndef GMODELSPATIALDIFFUSECONST_HPP
28 #define GMODELSPATIALDIFFUSECONST_HPP
63 virtual void clear(
void);
65 virtual std::string
classname(
void)
const;
67 const bool& gradients =
false)
const;
72 const double& radius)
const;
74 const double& margin = 0.0)
const;
85 double value(
void)
const;
86 void value(
const double& value);
110 return (
"GModelSpatialDiffuseConst");
156 const double& margin)
const
virtual std::string classname(void) const
Return class name.
void init_members(void)
Initialise class members.
XML element node class interface definition.
Sky direction class interface definition.
void free_members(void)
Delete class members.
Random number generator class.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print isotropic source model information.
virtual void set_region(void) const
Set boundary sky region.
virtual void read(const GXmlElement &xml)
Read model from XML element.
Model parameter class interface definition.
virtual void write(GXmlElement &xml) const
Write model into XML element.
Class that handles photons.
Abstract interface for the sky region class.
virtual double mc_norm(const GSkyDir &dir, const double &radius) const
Return normalization of constant diffuse source for Monte Carlo simulations.
virtual ~GModelSpatialDiffuseConst(void)
Destructor.
virtual void clear(void)
Clear isotropic spatial model.
GSkyDir m_mc_centre
Simulation cone centre.
double m_mc_cos_radius
Cosine of sim. cone radius.
std::string type(void) const
Return model type.
GModelSpatialDiffuseConst(void)
Void constructor.
Abstract diffuse spatial model base class interface definition.
void copy_members(const GModelSpatialDiffuseConst &model)
Copy class members.
const GSkyRegion * region(void) const
Return boundary sky region.
virtual double eval(const GPhoton &photon, const bool &gradients=false) const
Evaluate isotropic spatial model value.
virtual GModelSpatialDiffuseConst * clone(void) const
Clone isotropic spatial model.
double value(void) const
Return parameter value.
GModelSpatialDiffuseConst & operator=(const GModelSpatialDiffuseConst &model)
Assignment operator.
virtual double flux(const GSkyRegion ®ion, const GEnergy &srcEng=GEnergy(), const GTime &srcTime=GTime()) const
Returns isotropic flux integrated in sky region.
double value(void) const
Get model value.
virtual bool contains(const GSkyDir &dir, const double &margin=0.0) const
Signals whether model contains sky direction.
Abstract diffuse spatial model base class.
virtual GSkyDir mc(const GEnergy &energy, const GTime &time, GRan &ran) const
Return MC sky direction.
Circular sky region class interface definition.
Class that handles energies in a unit independent way.