GammaLib
2.1.0.dev
|
Kernel for ellitpical model azimuth angle IRF integration. More...
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_irf_elliptical_kern_omega (const GCTAResponseIrf *rsp, const GModelSpatialElliptical *model, const double &zenith, const double &azimuth, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const double &posangle_obs, const double &omega_pnt, const double &rho, const double &cos_psf, const double &sin_psf, const double &cos_ph, const double &sin_ph) | |
double | eval (const double &omega) |
Kernel for elliptical model integration over model's 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 GCTAResponseIrf * | m_rsp |
CTA response. More... | |
const GModelSpatialElliptical * | m_model |
Spatial model. More... | |
double | m_zenith |
Zenith angle. More... | |
double | m_azimuth |
Azimuth angle. More... | |
GEnergy | m_srcEng |
True photon energy. More... | |
GTime | m_srcTime |
True photon time. More... | |
GEnergy | m_obsEng |
Measured event energy. More... | |
double | m_posangle_obs |
Measured photon position angle from model centre. More... | |
double | m_omega_pnt |
Azimuth of pointing in model system. 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... | |
double | m_cos_ph |
Cosine term for photon offset angle computation. More... | |
double | m_sin_ph |
Sine term for photon 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 ellitpical model azimuth angle IRF integration.
Kernel for elliptical model azimuth angle integration.
This class implements the computation of
\[ S_{\rm p}(\rho, \omega | E, t) \, IRF(\rho, \omega) \]
where
This class implements the computation of
\[ S_{\rm p}(\omega | \rho, E, t) \, PSF(\omega | \rho) \]
where \(S_{\rm p}(\omega | \rho, E, t)\) is the elliptical model, \( 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 541 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 543 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for elliptical model integration over model's azimuth angle.
[in] | omega | Azimuth angle (radians). |
Computes
\[ S_{\rm p}(\omega | \rho, E, t) \, IRF(\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 \zeta + \sin \rho \sin \zeta \cos \omega)\]
where \(\zeta\) is the angular distance between the observed photon arrival direction \(\vec{p'}\) and the model centre \(\vec{m}\). This angle \(\delta\) is used to compute the \(PSF(\delta)\) value.
The method computes also the angle \(\theta\) between the observed photon arrival direction \(\vec{p'}\) and the camera pointing \(\vec{d}\) using
\[\theta = \arccos(\cos \rho \cos \lambda + \sin \rho \sin \lambda \cos \omega_0 - \omega)\]
where \(\lambda\) is the angular distance between the model centre \(\vec{m}\) and the camera pointing direction \(\vec{d}\). The angle \(\theta\) is used in the computation of the IRF (no azimuthal dependence is so far implemented for the IRF computation).
Implements GFunction.
Definition at line 907 of file GCTAResponse_helpers.cpp.
References gammalib::acos(), GCTAResponseIrf::aeff(), cos(), gammalib::deg2rad, GCTAResponseIrf::edisp(), GModelSpatialElliptical::eval(), gammalib::is_infinite(), gammalib::is_notanumber(), GEnergy::log10TeV(), m_azimuth, m_cos_ph, m_cos_psf, m_model, m_obsEng, m_omega_pnt, m_posangle_obs, m_rho, m_rsp, m_sin_ph, m_sin_psf, m_srcEng, m_srcTime, m_zenith, GModelSpatialElliptical::posangle(), GCTAResponseIrf::psf(), gammalib::rad2deg, GModelSpatialElliptical::semimajor(), GModelSpatialElliptical::semiminor(), sin(), sqrt(), and GCTAResponseIrf::use_edisp().
double cta_irf_elliptical_kern_omega::m_azimuth |
double cta_irf_elliptical_kern_omega::m_cos_ph |
Cosine term for photon offset angle computation.
Definition at line 585 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_irf_elliptical_kern_omega::m_cos_psf |
Cosine term for PSF offset angle computation.
Definition at line 583 of file GCTAResponse_helpers.hpp.
Referenced by eval().
const GModelSpatialElliptical* cta_irf_elliptical_kern_omega::m_model |
GEnergy cta_irf_elliptical_kern_omega::m_obsEng |
Measured event energy.
Definition at line 579 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_irf_elliptical_kern_omega::m_omega_pnt |
Azimuth of pointing in model system.
Definition at line 581 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_irf_elliptical_kern_omega::m_posangle_obs |
Measured photon position angle from model centre.
Definition at line 580 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_irf_elliptical_kern_omega::m_rho |
const GCTAResponseIrf* cta_irf_elliptical_kern_omega::m_rsp |
double cta_irf_elliptical_kern_omega::m_sin_ph |
Sine term for photon offset angle computation.
Definition at line 586 of file GCTAResponse_helpers.hpp.
Referenced by eval().
double cta_irf_elliptical_kern_omega::m_sin_psf |
Sine term for PSF offset angle computation.
Definition at line 584 of file GCTAResponse_helpers.hpp.
Referenced by eval().
GEnergy cta_irf_elliptical_kern_omega::m_srcEng |
GTime cta_irf_elliptical_kern_omega::m_srcTime |
double cta_irf_elliptical_kern_omega::m_zenith |