GammaLib
2.0.0
|
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_psf_elliptical_kern_omega (const GCTAResponseCube *rsp, const GModelSpatialElliptical *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &posangle_obs, const double &rho, const double &cos_psf, const double &sin_psf) | |
double | eval (const double &omega) |
Kernel for elliptical model integration over azimuth 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... | |
GSkyDir | m_srcDir |
True photon sky direction. More... | |
GEnergy | m_srcEng |
True photon energy. More... | |
GTime | m_srcTime |
True photon time. More... | |
double | m_posangle_obs |
Measured photon position angle from model centre. More... | |
double | m_rho |
Model zenith angle. More... | |
double | m_cos_psf |
Cosine term for PSF offset angle computation. More... | |
double | m_sin_psf |
Sine term for PSF offset angle computation. 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 1298 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 1300 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for elliptical model integration over azimuth angle.
[in] | omega | Azimuth angle (radians). |
Computes
\[ K(\omega | \rho, E, t) = S_{\rm p}(\omega | \rho, E, t) \, PSF(\omega | \rho) \]
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.
From the coordinates \((\rho,\omega)\) in the model system, the method computes the angle between the true ( \(\vec{p}\)) and observed ( \(\vec{p'}\)) photon arrival direction using
\[\delta = \arccos(\cos \rho \cos \rho_{\rm obs} + \sin \rho \sin \rho_{\rm obs} \cos \omega)\]
where \(\rho_{\rm obs}\) is the angular distance between the observed photon arrival direction \(\vec{p'}\) and the model centre \(\vec{m}\). \(\delta\) is used to compute the value of the point spread function.
Implements GFunction.
Definition at line 2160 of file GCTAResponse_helpers.cpp.
References gammalib::acos(), cos(), gammalib::deg2rad, GModelSpatialElliptical::eval(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_psf, m_model, m_posangle_obs, m_rho, m_rsp, m_sin_psf, m_srcDir, m_srcEng, m_srcTime, GModelSpatialElliptical::posangle(), GCTAResponseCube::psf(), gammalib::rad2deg, GModelSpatialElliptical::semimajor(), GModelSpatialElliptical::semiminor(), sin(), and sqrt().
double cta_psf_elliptical_kern_omega::m_cos_psf |
Cosine term for PSF offset angle computation.
Definition at line 1327 of file GCTAResponse_helpers.hpp.
Referenced by eval().
const GModelSpatialElliptical* cta_psf_elliptical_kern_omega::m_model |
double cta_psf_elliptical_kern_omega::m_posangle_obs |
Measured photon position angle from model centre.
Definition at line 1325 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_psf_elliptical_kern_omega::m_rho |
const GCTAResponseCube* cta_psf_elliptical_kern_omega::m_rsp |
double cta_psf_elliptical_kern_omega::m_sin_psf |
Sine term for PSF offset angle computation.
Definition at line 1328 of file GCTAResponse_helpers.hpp.
Referenced by eval().
GSkyDir cta_psf_elliptical_kern_omega::m_srcDir |
True photon sky direction.
Definition at line 1322 of file GCTAResponse_helpers.hpp.
Referenced by eval().
GEnergy cta_psf_elliptical_kern_omega::m_srcEng |
GTime cta_psf_elliptical_kern_omega::m_srcTime |