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

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

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_psf_radial_kern_delta:
GFunction

Public Member Functions

 cta_psf_radial_kern_delta (const GCTAResponseCube *rsp, const GModelSpatialRadial *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &delta_mod, const double &theta_max, const int &iter)
 
double eval (const double &delta)
 Kernel for PSF integration of radial 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 GModelSpatialRadialm_model
 Radial model. More...
 
GSkyDir m_srcDir
 True photon arrival direction. More...
 
GEnergy m_srcEng
 True photon energy. More...
 
GTime m_srcTime
 True photon arrival time. More...
 
double m_delta_mod
 Distance of model from Psf. More...
 
double m_cos_delta_mod
 Cosine of m_delta_mod. More...
 
double m_sin_delta_mod
 Sine of m_delta_mod. More...
 
double m_theta_max
 Maximum model radius. More...
 
double m_cos_theta_max
 Cosine of m_theta_max. More...
 
int m_iter
 Integration iterations. 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 1139 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_psf_radial_kern_delta::cta_psf_radial_kern_delta ( const GCTAResponseCube rsp,
const GModelSpatialRadial model,
const GSkyDir srcDir,
const GEnergy srcEng,
const GTime srcTime,
const double &  delta_mod,
const double &  theta_max,
const int &  iter 
)
inline

Definition at line 1141 of file GCTAResponse_helpers.hpp.

Member Function Documentation

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

Kernel for PSF integration of radial model.

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

Computes the azimuthally integrated product of point spread function and the radial 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 radial 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 1818 of file GCTAResponse_helpers.cpp.

References cos(), GIntegral::fixed_iter(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_delta_mod, m_cos_theta_max, m_delta_mod, m_iter, m_model, m_rsp, m_sin_delta_mod, m_srcDir, m_srcEng, m_srcTime, m_theta_max, GCTAResponseCube::psf(), gammalib::roi_arclength(), GIntegral::romberg(), and sin().

Member Data Documentation

double cta_psf_radial_kern_delta::m_cos_delta_mod
protected

Cosine of m_delta_mod.

Definition at line 1168 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_delta::m_cos_theta_max
protected

Cosine of m_theta_max.

Definition at line 1171 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_delta::m_delta_mod
protected

Distance of model from Psf.

Definition at line 1167 of file GCTAResponse_helpers.hpp.

Referenced by eval().

int cta_psf_radial_kern_delta::m_iter
protected

Integration iterations.

Definition at line 1172 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatialRadial* cta_psf_radial_kern_delta::m_model
protected

Radial model.

Definition at line 1163 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseCube* cta_psf_radial_kern_delta::m_rsp
protected

Response cube.

Definition at line 1162 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_delta::m_sin_delta_mod
protected

Sine of m_delta_mod.

Definition at line 1169 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GSkyDir cta_psf_radial_kern_delta::m_srcDir
protected

True photon arrival direction.

Definition at line 1164 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_psf_radial_kern_delta::m_srcEng
protected

True photon energy.

Definition at line 1165 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_psf_radial_kern_delta::m_srcTime
protected

True photon arrival time.

Definition at line 1166 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_delta::m_theta_max
protected

Maximum model radius.

Definition at line 1170 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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