GammaLib
2.1.0.dev
|
#include <GModelSpatial.hpp>
Public Member Functions | |
circle_int_kern_rho (const GModelSpatial *model, const GSkyRegion ®ion, const GSkyDir ¢re, const GEnergy &srcEng, const GTime &srcTime) | |
double | eval (const double &rho) |
Kernel for spatial model 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 GSkyRegion & | m_region |
Sky region. More... | |
const GSkyDir & | m_centre |
Model centre. More... | |
GEnergy | m_srcEng |
Photon energy. More... | |
GTime | m_srcTime |
Photon time. 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 spatial model radial integration.
[in] | rho | Radial distance from model 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 model centre, and \(\omega\) is the azimuth angle around the model centre.
Implements GFunction.
Definition at line 452 of file GModelSpatial.cpp.
References GModelSpatial::flux(), m_centre, m_model, m_region, m_srcEng, m_srcTime, GIntegral::romberg(), sin(), and gammalib::twopi.
const GSkyDir& GModelSpatial::circle_int_kern_rho::m_centre |
const GModelSpatial* GModelSpatial::circle_int_kern_rho::m_model |
const GSkyRegion& GModelSpatial::circle_int_kern_rho::m_region |
GEnergy GModelSpatial::circle_int_kern_rho::m_srcEng |
GTime GModelSpatial::circle_int_kern_rho::m_srcTime |