GammaLib
2.1.0.dev
|
Kernel for Psf delta angle integration used for stacked analysis. More...
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_psf_diffuse_kern_delta (const GCTAResponseCube *rsp, const GModelSpatial *model, const GMatrix *rot, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const int &min_iter, const int &max_iter, const double &resolution) | |
double | eval (const double &delta) |
Kernel for PSF integration of spatial model. 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 GCTAResponseCube * | m_rsp |
Response cube. More... | |
const GModelSpatial * | m_model |
Spatial model. More... | |
const GMatrix * | m_rot |
Rotation matrix. More... | |
GSkyDir | m_srcDir |
True photon arrival direction. More... | |
GEnergy | m_srcEng |
True photon energy. More... | |
GTime | m_srcTime |
True photon arrival time. More... | |
int | m_min_iter |
Minimum number of Romberg iterations. More... | |
int | m_max_iter |
Maximum number of Romberg iterations. More... | |
double | m_resolution |
Spatial map resolution. More... | |
double | m_psf_max |
Maximum PSF value. 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 Psf delta angle integration used for stacked analysis.
Definition at line 1337 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 1339 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for PSF integration of spatial model.
[in] | delta | PSF offset angle (radians). |
Computes the azimuthally integrated product of point spread function and the spatial model intensity. As the PSF is azimuthally symmetric, it is not included in the azimuthally integration, but just multiplied on the azimuthally integrated model. The method returns thus
\[ {\rm PSF}(\delta) \times \int_0^{2\pi} {\rm M}(\delta, \phi) \sin \delta {\rm d}\phi \]
where \({\rm M}(\delta, \phi)\) is the spatial model in the coordinate system of the point spread function, defined by the angle \(\delta\) between the true and the measured photon direction and the azimuth angle \(\phi\) around the measured photon direction.
Implements GFunction.
Definition at line 2244 of file GCTAResponse_helpers.cpp.
References cos(), GIntegral::fixed_iter(), gammalib::is_infinite(), gammalib::is_notanumber(), gammalib::iter_phi(), m_max_iter, m_min_iter, m_model, m_resolution, m_rot, m_rsp, m_srcDir, m_srcEng, m_srcTime, GCTAResponseCube::psf(), GIntegral::romberg(), sin(), and gammalib::twopi.
|
protected |
Maximum number of Romberg iterations.
Definition at line 1367 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Minimum number of Romberg iterations.
Definition at line 1366 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
Maximum PSF value.
Definition at line 1369 of file GCTAResponse_helpers.hpp.
|
protected |
Spatial map resolution.
Definition at line 1368 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
|
protected |
True photon arrival direction.
Definition at line 1363 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
True photon arrival time.
Definition at line 1365 of file GCTAResponse_helpers.hpp.
Referenced by eval().