GammaLib
2.0.0
|
Integration kernel for npsf() method. More...
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_npsf_kern_rad_azsym (const GCTAResponseIrf *rsp, const double &roi, const double &psf, const double &logE, const double &theta, const double &phi, const double &zenith, const double &azimuth) | |
double | eval (const double &delta) |
Integration kernel for npsf() method. 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... | |
Protected Attributes | |
const GCTAResponseIrf * | m_rsp |
CTA response function. More... | |
double | m_roi |
ROI radius in radians. More... | |
double | m_cosroi |
Cosine of ROI radius. More... | |
double | m_psf |
PSF-ROI centre distance in radians. More... | |
double | m_cospsf |
Cosine of PSF-ROI centre distance. More... | |
double | m_sinpsf |
Sine of PSF-ROI centre distance. More... | |
double | m_logE |
Log10 of true photon energy (E/TeV). More... | |
double | m_theta |
Offset angle of source in camera system. More... | |
double | m_phi |
Azimuth angle of source in camera system. More... | |
double | m_zenith |
Zenith angle of source in Earth system. More... | |
double | m_azimuth |
Azimuth angle of source in Earth system. 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... | |
Integration kernel for npsf() method.
This class implements the integration kernel needed for the npsf() method. It performs an azimuthal integration of the Point Spread Function (PSF) for a given offset angle \(delta\) using
\[ K(\delta) = \int_{0}^{\phi} PSF(\delta) d\phi \]
(an offset angle of \(\delta=0\) corresponds to the centre of the PSF).
Definition at line 79 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 81 of file GCTAResponse_helpers.hpp.
|
virtual |
Integration kernel for npsf() method.
[in] | delta | Distance from PSF centre (radians). |
Computes
\[ \int_{0}^{\phi} PSF(\delta) d\phi \]
for a given offset angle \(\delta\).
The azimuthal integration is performed over an arclength given by \(\phi\). The method actually assumes that the PSF is azimuthally symmetric, hence it just multiplies the PSF value by the arclength times the sinus of the offset angle.
Implements GFunction.
Definition at line 247 of file GCTAResponse_helpers.cpp.
References gammalib::is_infinite(), gammalib::is_notanumber(), m_azimuth, m_cospsf, m_cosroi, m_logE, m_phi, m_psf, m_roi, m_rsp, m_sinpsf, m_theta, m_zenith, GCTAResponseIrf::psf(), gammalib::roi_arclength(), and sin().
|
protected |
Azimuth angle of source in Earth system.
Definition at line 112 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Cosine of PSF-ROI centre distance.
Definition at line 106 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Cosine of ROI radius.
Definition at line 104 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Log10 of true photon energy (E/TeV).
Definition at line 108 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Azimuth angle of source in camera system.
Definition at line 110 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
PSF-ROI centre distance in radians.
Definition at line 105 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
ROI radius in radians.
Definition at line 103 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
CTA response function.
Definition at line 102 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Sine of PSF-ROI centre distance.
Definition at line 107 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Offset angle of source in camera system.
Definition at line 109 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Zenith angle of source in Earth system.
Definition at line 111 of file GCTAResponse_helpers.hpp.
Referenced by eval().