GammaLib
2.0.0
|
#include <GModelSpatial.hpp>
Public Member Functions | |
circle_int_kern_rho (const GModelSpatial *model, const GSkyRegionCircle *reg, const GEnergy &srcEng, const GTime &srcTime, const double distance, const double cosdist, const double sindist, const double modrad, const double cosmodrad) | |
double | eval (const double &rho) |
Kernel for circular sky region radial integration. More... | |
Public Member Functions inherited from GFunction | |
GFunction (void) | |
Void constructor. More... | |
GFunction (const GFunction &function) | |
Copy constructor. More... | |
virtual | ~GFunction (void) |
Destructor. More... | |
GFunction & | operator= (const GFunction &function) |
Assignment operator. More... | |
Public Attributes | |
const GModelSpatial * | m_model |
Spatial model. More... | |
const GSkyRegionCircle * | m_reg |
Integration region. More... | |
GEnergy | m_srcEng |
Photon energy. More... | |
GTime | m_srcTime |
Photon time. More... | |
double | m_dist |
Distance model-region (rad) More... | |
double | m_cosdist |
Cos of distance model-region. More... | |
double | m_sindist |
Sin of distance model-region. More... | |
double | m_modrad |
Model radius (rad) More... | |
double | m_cosmodrad |
Cos of model radius. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from GFunction | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GFunction &function) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Definition at line 131 of file GModelSpatial.hpp.
|
inline |
Definition at line 133 of file GModelSpatial.hpp.
|
virtual |
Kernel for circular sky region radial integration.
[in] | rho | Radial distance from region centre (radians). |
\[ \int_{\rho_{\rm min}}^{\rho_{\rm max}} K(\rho | E, t) d\rho \]
of a spatial model over a circular region. The eval() method computes
\[ K(\rho | E, t) = \sin \rho \times \int_{\omega} M(\rho, \omega | E, t) d\omega \]
where \(M(\rho, \omega | E, t)\) is the spatial model, \(\rho\) is the distance from the region centre, and \(\omega\) is the position angle with respect to the connecting line between the region centre and the direction on the sky.
Implements GFunction.
Definition at line 492 of file GModelSpatial.cpp.
References GModelSpatial::flux(), g_kludge_radius, m_cosdist, m_cosmodrad, m_dist, m_model, m_modrad, m_reg, m_sindist, m_srcEng, m_srcTime, gammalib::roi_arclength(), GIntegral::romberg(), and sin().
double GModelSpatial::circle_int_kern_rho::m_cosdist |
Cos of distance model-region.
Definition at line 158 of file GModelSpatial.hpp.
Referenced by eval().
double GModelSpatial::circle_int_kern_rho::m_cosmodrad |
double GModelSpatial::circle_int_kern_rho::m_dist |
const GModelSpatial* GModelSpatial::circle_int_kern_rho::m_model |
double GModelSpatial::circle_int_kern_rho::m_modrad |
const GSkyRegionCircle* GModelSpatial::circle_int_kern_rho::m_reg |
double GModelSpatial::circle_int_kern_rho::m_sindist |
Sin of distance model-region.
Definition at line 159 of file GModelSpatial.hpp.
Referenced by eval().
GEnergy GModelSpatial::circle_int_kern_rho::m_srcEng |
GTime GModelSpatial::circle_int_kern_rho::m_srcTime |