GammaLib  2.1.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cta_psf_diffuse_kern_delta Class Reference

Kernel for Psf delta angle integration used for stacked analysis. More...

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_psf_diffuse_kern_delta:
GFunction

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...
 
GFunctionoperator= (const GFunction &function)
 Assignment operator. More...
 

Protected Attributes

const GCTAResponseCubem_rsp
 Response cube. More...
 
const GModelSpatialm_model
 Spatial model. More...
 
const GMatrixm_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...
 

Detailed Description

Kernel for Psf delta angle integration used for stacked analysis.

Definition at line 1337 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_psf_diffuse_kern_delta::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 
)
inline

Definition at line 1339 of file GCTAResponse_helpers.hpp.

Member Function Documentation

double cta_psf_diffuse_kern_delta::eval ( const double &  delta)
virtual

Kernel for PSF integration of spatial model.

Parameters
[in]deltaPSF offset angle (radians).
Returns
Azimuthally integrated product between PSF and model.

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.

Member Data Documentation

int cta_psf_diffuse_kern_delta::m_max_iter
protected

Maximum number of Romberg iterations.

Definition at line 1367 of file GCTAResponse_helpers.hpp.

Referenced by eval().

int cta_psf_diffuse_kern_delta::m_min_iter
protected

Minimum number of Romberg iterations.

Definition at line 1366 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatial* cta_psf_diffuse_kern_delta::m_model
protected

Spatial model.

Definition at line 1361 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_diffuse_kern_delta::m_psf_max
protected

Maximum PSF value.

Definition at line 1369 of file GCTAResponse_helpers.hpp.

double cta_psf_diffuse_kern_delta::m_resolution
protected

Spatial map resolution.

Definition at line 1368 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GMatrix* cta_psf_diffuse_kern_delta::m_rot
protected

Rotation matrix.

Definition at line 1362 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseCube* cta_psf_diffuse_kern_delta::m_rsp
protected

Response cube.

Definition at line 1360 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GSkyDir cta_psf_diffuse_kern_delta::m_srcDir
protected

True photon arrival direction.

Definition at line 1363 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_psf_diffuse_kern_delta::m_srcEng
protected

True photon energy.

Definition at line 1364 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_psf_diffuse_kern_delta::m_srcTime
protected

True photon arrival time.

Definition at line 1365 of file GCTAResponse_helpers.hpp.

Referenced by eval().


The documentation for this class was generated from the following files: