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

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_psf_elliptical_kern_rho:
GFunction

Public Member Functions

 cta_psf_elliptical_kern_rho (const GCTAResponseCube *rsp, const GModelSpatialElliptical *model, const double &semimajor, const double &semiminor, const double &posangle, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &rho_obs, const double &posangle_obs, const double &delta_max, const int &iter)
 
double eval (const double &rho)
 Kernel for elliptical model integration over zenith 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...
 
double m_semimajor
 Ellipse boundary semimajor axis. More...
 
double m_semiminor
 Ellipse boundary semiminor axis. More...
 
double m_posangle
 Ellipse boundary position angle. More...
 
GSkyDir m_srcDir
 True photon arrival direction. More...
 
GEnergy m_srcEng
 True photon energy. More...
 
GTime m_srcTime
 True photon time. More...
 
double m_rho_obs
 Distance of model centre from measured photon. More...
 
double m_cos_rho_obs
 Cosine of m_rho_obs. More...
 
double m_sin_rho_obs
 Sine of m_rho_obs. More...
 
double m_posangle_obs
 Photon position angle measured from model centre. More...
 
double m_delta_max
 Maximum PSF radius. More...
 
double m_cos_delta_max
 Cosine of maximum PSF radius. 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

Definition at line 1231 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_psf_elliptical_kern_rho::cta_psf_elliptical_kern_rho ( const GCTAResponseCube rsp,
const GModelSpatialElliptical model,
const double &  semimajor,
const double &  semiminor,
const double &  posangle,
const GSkyDir srcDir,
const GEnergy srcEng,
const GTime srcTime,
const double &  rho_obs,
const double &  posangle_obs,
const double &  delta_max,
const int &  iter 
)
inline

Definition at line 1233 of file GCTAResponse_helpers.hpp.

Member Function Documentation

double cta_psf_elliptical_kern_rho::eval ( const double &  rho)
virtual

Kernel for elliptical model integration over zenith angle.

Parameters
[in]rhoRadial distance from model centre (radians).
Returns
Integration kernel.

Computes the integration kernel

\[ K(\rho | E, t) = \sin \rho \times \int_{\omega} S_{\rm p}(\rho, \omega | E, t) \, PSF(\rho, \omega) d\omega \]

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. \(S_{\rm p}(\rho, \omega | E, t)\) is the elliptical source model for a given true photon energy and photon arrival time, \(PSF(\rho, \omega)\) is the point spread function. The integration is over the \(\omega\) values that are comprised within the ellipse boundaries.

Implements GFunction.

Definition at line 1982 of file GCTAResponse_helpers.cpp.

References gammalib::acos(), cos(), GIntegral::fixed_iter(), g_ellipse_kludge_radius, gammalib::is_infinite(), gammalib::is_notanumber(), gammalib::limit_omega(), m_cos_delta_max, m_cos_rho_obs, m_delta_max, m_iter, m_model, m_posangle, m_posangle_obs, m_rho_obs, m_rsp, m_semimajor, m_semiminor, m_sin_rho_obs, m_srcDir, m_srcEng, m_srcTime, max(), min(), gammalib::pi, gammalib::roi_arclength(), GIntegral::romberg(), sin(), and sqrt().

Member Data Documentation

double cta_psf_elliptical_kern_rho::m_cos_delta_max

Cosine of maximum PSF radius.

Definition at line 1275 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_rho::m_cos_rho_obs

Cosine of m_rho_obs.

Definition at line 1271 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_rho::m_delta_max

Maximum PSF radius.

Definition at line 1274 of file GCTAResponse_helpers.hpp.

Referenced by eval().

int cta_psf_elliptical_kern_rho::m_iter

Integration iterations.

Definition at line 1276 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatialElliptical* cta_psf_elliptical_kern_rho::m_model

Elliptical model.

Definition at line 1263 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_rho::m_posangle

Ellipse boundary position angle.

Definition at line 1266 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_rho::m_posangle_obs

Photon position angle measured from model centre.

Definition at line 1273 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_rho::m_rho_obs

Distance of model centre from measured photon.

Definition at line 1270 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseCube* cta_psf_elliptical_kern_rho::m_rsp

CTA response.

Definition at line 1262 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_rho::m_semimajor

Ellipse boundary semimajor axis.

Definition at line 1264 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_rho::m_semiminor

Ellipse boundary semiminor axis.

Definition at line 1265 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_elliptical_kern_rho::m_sin_rho_obs

Sine of m_rho_obs.

Definition at line 1272 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GSkyDir cta_psf_elliptical_kern_rho::m_srcDir

True photon arrival direction.

Definition at line 1267 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_psf_elliptical_kern_rho::m_srcEng

True photon energy.

Definition at line 1268 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_psf_elliptical_kern_rho::m_srcTime

True photon time.

Definition at line 1269 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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