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

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_psf_elliptical_kern_omega:
GFunction

Public Member Functions

 cta_psf_elliptical_kern_omega (const GCTAResponseCube *rsp, const GModelSpatialElliptical *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &posangle_obs, const double &rho, const double &cos_psf, const double &sin_psf)
 
double eval (const double &omega)
 Kernel for elliptical 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 GModelSpatialEllipticalm_model
 Elliptical 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_posangle_obs
 Measured photon position angle from model centre. More...
 
double m_rho
 Model zenith angle. 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

Definition at line 1295 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_psf_elliptical_kern_omega::cta_psf_elliptical_kern_omega ( const GCTAResponseCube rsp,
const GModelSpatialElliptical model,
const GSkyDir srcDir,
const GEnergy srcEng,
const GTime srcTime,
const double &  posangle_obs,
const double &  rho,
const double &  cos_psf,
const double &  sin_psf 
)
inline

Definition at line 1297 of file GCTAResponse_helpers.hpp.

Member Function Documentation

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

Kernel for elliptical model integration over azimuth angle.

Parameters
[in]omegaAzimuth angle (radians).

Computes

\[ K(\omega | \rho, E, t) = S_{\rm p}(\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 2162 of file GCTAResponse_helpers.cpp.

References gammalib::acos(), cos(), gammalib::deg2rad, GModelSpatialElliptical::eval(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_psf, m_model, m_posangle_obs, m_rho, m_rsp, m_sin_psf, m_srcDir, m_srcEng, m_srcTime, GModelSpatialElliptical::posangle(), GCTAResponseCube::psf(), gammalib::rad2deg, GModelSpatialElliptical::semimajor(), GModelSpatialElliptical::semiminor(), sin(), and sqrt().

Member Data Documentation

double cta_psf_elliptical_kern_omega::m_cos_psf

Cosine term for PSF offset angle computation.

Definition at line 1324 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatialElliptical* cta_psf_elliptical_kern_omega::m_model

Elliptical model.

Definition at line 1318 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_omega::m_posangle_obs

Measured photon position angle from model centre.

Definition at line 1322 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_omega::m_rho

Model zenith angle.

Definition at line 1323 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseCube* cta_psf_elliptical_kern_omega::m_rsp

CTA response.

Definition at line 1317 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_omega::m_sin_psf

Sine term for PSF offset angle computation.

Definition at line 1325 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GSkyDir cta_psf_elliptical_kern_omega::m_srcDir

True photon sky direction.

Definition at line 1319 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_psf_elliptical_kern_omega::m_srcEng

True photon energy.

Definition at line 1320 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_psf_elliptical_kern_omega::m_srcTime

True photon time.

Definition at line 1321 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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