GammaLib
2.0.0
|
Kernel for IRF offest angle integration of the diffuse source model. More...
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_irf_diffuse_kern_theta (const GCTAResponseIrf *rsp, const GModelSpatial *model, const GMatrix *rot, const double &theta, const double &phi, const double &zenith, const double &azimuth, const GEnergy &srcEng, const GTime &srcTime, const double &srcLogEng, const GEnergy &obsEng, const double &eta, const int &min_iter, const int &max_iter, const double &resolution) | |
double | eval (const double &theta) |
Kernel for IRF offest angle integration of the diffuse source model. 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... | |
Protected Attributes | |
const GCTAResponseIrf * | m_rsp |
CTA response. More... | |
const GModelSpatial * | m_model |
Spatial model. More... | |
const GMatrix * | m_rot |
Rotation matrix. More... | |
double | m_theta |
Photon offset angle. More... | |
double | m_phi |
Photon azimuth angle. More... | |
double | m_zenith |
Pointing zenith angle. More... | |
double | m_azimuth |
Pointing azimuth angle. More... | |
GEnergy | m_srcEng |
True photon energy. More... | |
GTime | m_srcTime |
True photon arrival time. More... | |
double | m_srcLogEng |
True photon log energy. More... | |
GEnergy | m_obsEng |
Measured event energy. More... | |
double | m_sin_eta |
Sine of angular distance between. More... | |
double | m_cos_eta |
Cosine of angular distance between. More... | |
int | m_min_iter |
int | m_max_iter |
double | m_resolution |
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... | |
Kernel for IRF offest angle integration of the diffuse source model.
This class implements the integration kernel \(K(\theta)\) for the integration
\[ \int_{0}^{\theta_{\rm max}} K(\theta | E, t) d\theta \]
of diffuse models. The eval() method computes
\[ K(\theta | E, t) = \sin \theta \times PSF(\theta) \int_{0}^{2\pi} S_{\rm p}(\theta, \phi | E, t) \, Aeff(\theta, \phi) \, Edisp(\theta, \phi) d\phi \]
where
Definition at line 774 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 776 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for IRF offest angle integration of the diffuse source model.
[in] | theta | Offset angle with respect to observed photon direction (radians). |
Computes
\[ K(\theta | E, t) = \sin \theta \times PSF(\theta) \int_{0}^{2\pi} S_{\rm p}(\theta, \phi | E, t) \, Aeff(\theta, \phi) \, Edisp(\theta, \phi) d\phi \]
The PSF is assumed to be azimuthally symmetric, hence the PSF is computed outside the azimuthal integration.
Note that the integration is only performed for \(\theta>0\). Otherwise zero is returned.
Implements GFunction.
Definition at line 1288 of file GCTAResponse_helpers.cpp.
References cos(), GIntegral::fixed_iter(), gammalib::is_infinite(), gammalib::is_notanumber(), gammalib::iter_phi(), m_azimuth, m_cos_eta, m_max_iter, m_min_iter, m_model, m_obsEng, m_phi, m_resolution, m_rot, m_rsp, m_sin_eta, m_srcEng, m_srcLogEng, m_srcTime, m_theta, m_zenith, GIntegral::print(), GCTAResponseIrf::psf(), gammalib::rad2deg, GIntegral::romberg(), sin(), and gammalib::twopi.
|
protected |
Pointing azimuth angle.
Definition at line 815 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Cosine of angular distance between.
Definition at line 823 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Definition at line 827 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Definition at line 826 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
Measured event energy.
Definition at line 819 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Photon azimuth angle.
Definition at line 813 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Definition at line 828 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
|
protected |
Sine of angular distance between.
Definition at line 820 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
True photon log energy.
Definition at line 818 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
True photon arrival time.
Definition at line 817 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
Pointing zenith angle.
Definition at line 814 of file GCTAResponse_helpers.hpp.
Referenced by eval().