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

Kernel for radial model azimuth angle integration. More...

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_psf_radial_kern_omega:
GFunction

Public Member Functions

 cta_psf_radial_kern_omega (const GCTAResponseCube *rsp, const GModelSpatialRadial *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &cos_psf, const double &sin_psf)
 
double eval (const double &omega)
 Kernel for radial model integration over 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...
 
GFunctionoperator= (const GFunction &function)
 Assignment operator. More...
 

Public Attributes

const GCTAResponseCubem_rsp
 CTA response. More...
 
const GModelSpatialRadialm_model
 Radial model. More...
 
GSkyDir m_srcDir
 True photon sky direction. More...
 
GEnergy m_srcEng
 True photon energy. More...
 
GTime m_srcTime
 True photon time. 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...
 

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 radial model azimuth angle integration.

This class implements the computation of

\[ K(\omega | \rho, E, t) = PSF(\omega | \rho) \]

where \(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 1103 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_psf_radial_kern_omega::cta_psf_radial_kern_omega ( const GCTAResponseCube rsp,
const GModelSpatialRadial model,
const GSkyDir srcDir,
const GEnergy srcEng,
const GTime srcTime,
const double &  cos_psf,
const double &  sin_psf 
)
inline

Definition at line 1105 of file GCTAResponse_helpers.hpp.

Member Function Documentation

double cta_psf_radial_kern_omega::eval ( const double &  omega)
virtual

Kernel for radial model integration over azimuth angle.

Parameters
[in]omegaAzimuth angle (radians).

Computes

\[ K(\omega | \rho, E, t) = PSF(\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 \rho_{\rm obs} + \sin \rho \sin \rho_{\rm obs} \cos \omega)\]

where \(\rho_{\rm obs}\) is the angular distance between the observed photon arrival direction \(\vec{p'}\) and the model centre \(\vec{m}\). \(\delta\) is used to compute the value of the point spread function.

Implements GFunction.

Definition at line 1770 of file GCTAResponse_helpers.cpp.

References gammalib::acos(), cos(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_psf, m_rsp, m_sin_psf, m_srcDir, m_srcEng, and GCTAResponseCube::psf().

Member Data Documentation

double cta_psf_radial_kern_omega::m_cos_psf

Cosine term for PSF offset angle computation.

Definition at line 1126 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatialRadial* cta_psf_radial_kern_omega::m_model

Radial model.

Definition at line 1122 of file GCTAResponse_helpers.hpp.

const GCTAResponseCube* cta_psf_radial_kern_omega::m_rsp

CTA response.

Definition at line 1121 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_omega::m_sin_psf

Sine term for PSF offset angle computation.

Definition at line 1127 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GSkyDir cta_psf_radial_kern_omega::m_srcDir

True photon sky direction.

Definition at line 1123 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_psf_radial_kern_omega::m_srcEng

True photon energy.

Definition at line 1124 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_psf_radial_kern_omega::m_srcTime

True photon time.

Definition at line 1125 of file GCTAResponse_helpers.hpp.


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