GammaLib
2.0.0
|
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_psf_elliptical_kern_rho (const GCTAResponseCube *rsp, const GModelSpatialElliptical *model, const double &semimajor, const double &semiminor, const double &posangle, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &rho_obs, const double &posangle_obs, const double &delta_max, const int &iter) | |
double | eval (const double &rho) |
Kernel for elliptical 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 GModelSpatialElliptical * | m_model |
Elliptical model. More... | |
double | m_semimajor |
Ellipse boundary semimajor axis. More... | |
double | m_semiminor |
Ellipse boundary semiminor axis. More... | |
double | m_posangle |
Ellipse boundary position angle. 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_posangle_obs |
Photon position angle measured from model centre. 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 1231 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 1233 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for elliptical model integration over zenith angle.
[in] | rho | Radial distance from model centre (radians). |
Computes the integration kernel
\[ K(\rho | E, t) = \sin \rho \times \int_{\omega} S_{\rm p}(\rho, \omega | E, t) \, 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, \omega | E, t)\) is the elliptical source model for a given true photon energy and photon arrival time, \(PSF(\rho, \omega)\) is the point spread function. The integration is over the \(\omega\) values that are comprised within the ellipse boundaries.
Implements GFunction.
Definition at line 1982 of file GCTAResponse_helpers.cpp.
References gammalib::acos(), cos(), GIntegral::fixed_iter(), g_ellipse_kludge_radius, gammalib::is_infinite(), gammalib::is_notanumber(), gammalib::limit_omega(), m_cos_delta_max, m_cos_rho_obs, m_delta_max, m_iter, m_model, m_posangle, m_posangle_obs, m_rho_obs, m_rsp, m_semimajor, m_semiminor, m_sin_rho_obs, m_srcDir, m_srcEng, m_srcTime, max(), min(), gammalib::pi, gammalib::roi_arclength(), GIntegral::romberg(), sin(), and sqrt().
double cta_psf_elliptical_kern_rho::m_cos_delta_max |
Cosine of maximum PSF radius.
Definition at line 1275 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_elliptical_kern_rho::m_cos_rho_obs |
Cosine of m_rho_obs.
Definition at line 1271 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_elliptical_kern_rho::m_delta_max |
int cta_psf_elliptical_kern_rho::m_iter |
Integration iterations.
Definition at line 1276 of file GCTAResponse_helpers.hpp.
Referenced by eval().
const GModelSpatialElliptical* cta_psf_elliptical_kern_rho::m_model |
double cta_psf_elliptical_kern_rho::m_posangle |
Ellipse boundary position angle.
Definition at line 1266 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_elliptical_kern_rho::m_posangle_obs |
Photon position angle measured from model centre.
Definition at line 1273 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_elliptical_kern_rho::m_rho_obs |
Distance of model centre from measured photon.
Definition at line 1270 of file GCTAResponse_helpers.hpp.
Referenced by eval().
const GCTAResponseCube* cta_psf_elliptical_kern_rho::m_rsp |
double cta_psf_elliptical_kern_rho::m_semimajor |
Ellipse boundary semimajor axis.
Definition at line 1264 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_elliptical_kern_rho::m_semiminor |
Ellipse boundary semiminor axis.
Definition at line 1265 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_elliptical_kern_rho::m_sin_rho_obs |
GSkyDir cta_psf_elliptical_kern_rho::m_srcDir |
True photon arrival direction.
Definition at line 1267 of file GCTAResponse_helpers.hpp.
Referenced by eval().
GEnergy cta_psf_elliptical_kern_rho::m_srcEng |
GTime cta_psf_elliptical_kern_rho::m_srcTime |