GammaLib
2.1.0.dev
|
Kernel for radial model azimuth angle integration. More...
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_psf_radial_kern_omega (const GCTAResponseCube *rsp, const GModelSpatialRadial *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &cos_psf, const double &sin_psf) | |
double | eval (const double &omega) |
Kernel for radial 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 GModelSpatialRadial * | m_model |
Radial 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_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... | |
Kernel for radial model azimuth angle integration.
This class implements the computation of
\[ K(\omega | \rho, E, t) = PSF(\omega | \rho) \]
where \(PSF(\omega | \rho)\) is the point spread function, \(\rho\) is the distance from the model centre, and \(\omega\) is the position angle with respect to the connecting line between the model centre and the observed photon arrival direction.
Definition at line 1106 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 1108 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for radial model integration over azimuth angle.
[in] | omega | Azimuth angle (radians). |
Computes
\[ K(\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 1771 of file GCTAResponse_helpers.cpp.
References gammalib::acos(), cos(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_psf, m_rsp, m_sin_psf, m_srcDir, m_srcEng, and GCTAResponseCube::psf().
double cta_psf_radial_kern_omega::m_cos_psf |
Cosine term for PSF offset angle computation.
Definition at line 1129 of file GCTAResponse_helpers.hpp.
Referenced by eval().
const GModelSpatialRadial* cta_psf_radial_kern_omega::m_model |
Radial model.
Definition at line 1125 of file GCTAResponse_helpers.hpp.
const GCTAResponseCube* cta_psf_radial_kern_omega::m_rsp |
double cta_psf_radial_kern_omega::m_sin_psf |
Sine term for PSF offset angle computation.
Definition at line 1130 of file GCTAResponse_helpers.hpp.
Referenced by eval().
GSkyDir cta_psf_radial_kern_omega::m_srcDir |
True photon sky direction.
Definition at line 1126 of file GCTAResponse_helpers.hpp.
Referenced by eval().
GEnergy cta_psf_radial_kern_omega::m_srcEng |
GTime cta_psf_radial_kern_omega::m_srcTime |
True photon time.
Definition at line 1128 of file GCTAResponse_helpers.hpp.