GammaLib
2.0.0
|
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_psf_radial_kern_rho (const GCTAResponseCube *rsp, const GModelSpatialRadial *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &rho_obs, const double &delta_max, const int &iter) | |
double | eval (const double &rho) |
Kernel for radial model integration over zenith angle. 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 GCTAResponseCube * | m_rsp |
CTA response. More... | |
const GModelSpatialRadial * | m_model |
Radial model. More... | |
GSkyDir | m_srcDir |
True photon arrival direction. More... | |
GEnergy | m_srcEng |
True photon energy. More... | |
GTime | m_srcTime |
True photon time. More... | |
double | m_rho_obs |
Distance of model centre from measured photon. More... | |
double | m_cos_rho_obs |
Cosine of m_rho_obs. More... | |
double | m_sin_rho_obs |
Sine of m_rho_obs. More... | |
double | m_delta_max |
Maximum PSF radius. More... | |
double | m_cos_delta_max |
Cosine of maximum PSF radius. More... | |
int | m_iter |
Integration iterations. 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 1052 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 1054 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for radial model integration over zenith angle.
[in] | rho | Radial distance from model centre (radians). |
Computes the integration kernel
\[ K(\rho | E, t) = \sin \rho \times S_{\rm p}(\rho | E, t) \times \int_{\omega} PSF(\rho, \omega) d\omega \]
where \(\omega\) is the azimuth angle with respect to the model centre, counted counterclockwise from the vector connecting the model centre to the observed photon direction, and \(\rho\) is the radial distance from the model centre. \(S_{\rm p}(\rho | E, t)\) is the radial source model for a given true photon energy and photon arrival time, \(PSF(\rho, \omega)\) is the point spread function.
Implements GFunction.
Definition at line 1645 of file GCTAResponse_helpers.cpp.
References cos(), GModelSpatialRadial::eval(), GIntegral::fixed_iter(), g_kludge_radius, gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_delta_max, m_cos_rho_obs, m_delta_max, m_iter, m_model, m_rho_obs, m_rsp, m_sin_rho_obs, m_srcDir, m_srcEng, m_srcTime, gammalib::rad2deg, gammalib::roi_arclength(), GIntegral::romberg(), sin(), and GModelSpatialRadial::theta_max().
double cta_psf_radial_kern_rho::m_cos_delta_max |
Cosine of maximum PSF radius.
Definition at line 1084 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_radial_kern_rho::m_cos_rho_obs |
Cosine of m_rho_obs.
Definition at line 1081 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_radial_kern_rho::m_delta_max |
int cta_psf_radial_kern_rho::m_iter |
Integration iterations.
Definition at line 1085 of file GCTAResponse_helpers.hpp.
Referenced by eval().
const GModelSpatialRadial* cta_psf_radial_kern_rho::m_model |
double cta_psf_radial_kern_rho::m_rho_obs |
Distance of model centre from measured photon.
Definition at line 1080 of file GCTAResponse_helpers.hpp.
Referenced by eval().
const GCTAResponseCube* cta_psf_radial_kern_rho::m_rsp |
double cta_psf_radial_kern_rho::m_sin_rho_obs |
GSkyDir cta_psf_radial_kern_rho::m_srcDir |
True photon arrival direction.
Definition at line 1077 of file GCTAResponse_helpers.hpp.
Referenced by eval().
GEnergy cta_psf_radial_kern_rho::m_srcEng |
GTime cta_psf_radial_kern_rho::m_srcTime |