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