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

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_psf_radial_kern_rho:
GFunction

Public Member Functions

 cta_psf_radial_kern_rho (const GCTAResponseCube *rsp, const GModelSpatialRadial *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &rho_obs, const double &delta_max, const int &iter)
 
double eval (const double &rho)
 Kernel for radial 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 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 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_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 1049 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_psf_radial_kern_rho::cta_psf_radial_kern_rho ( const GCTAResponseCube rsp,
const GModelSpatialRadial model,
const GSkyDir srcDir,
const GEnergy srcEng,
const GTime srcTime,
const double &  rho_obs,
const double &  delta_max,
const int &  iter 
)
inline

Definition at line 1051 of file GCTAResponse_helpers.hpp.

Member Function Documentation

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

Kernel for radial 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 S_{\rm p}(\rho | E, t) \times \int_{\omega} 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 | E, t)\) is the radial source model for a given true photon energy and photon arrival time, \(PSF(\rho, \omega)\) is the point spread function.

Implements GFunction.

Definition at line 1644 of file GCTAResponse_helpers.cpp.

References cos(), GModelSpatialRadial::eval(), GIntegral::fixed_iter(), g_kludge_radius, gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_delta_max, m_cos_rho_obs, m_delta_max, m_iter, m_model, m_rho_obs, m_rsp, m_sin_rho_obs, m_srcDir, m_srcEng, m_srcTime, gammalib::rad2deg, gammalib::roi_arclength(), GIntegral::romberg(), sin(), and GModelSpatialRadial::theta_max().

Member Data Documentation

double cta_psf_radial_kern_rho::m_cos_delta_max

Cosine of maximum PSF radius.

Definition at line 1081 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_rho::m_cos_rho_obs

Cosine of m_rho_obs.

Definition at line 1078 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_rho::m_delta_max

Maximum PSF radius.

Definition at line 1080 of file GCTAResponse_helpers.hpp.

Referenced by eval().

int cta_psf_radial_kern_rho::m_iter

Integration iterations.

Definition at line 1082 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatialRadial* cta_psf_radial_kern_rho::m_model

Radial model.

Definition at line 1073 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_rho::m_rho_obs

Distance of model centre from measured photon.

Definition at line 1077 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseCube* cta_psf_radial_kern_rho::m_rsp

CTA response.

Definition at line 1072 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_rho::m_sin_rho_obs

Sine of m_rho_obs.

Definition at line 1079 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GSkyDir cta_psf_radial_kern_rho::m_srcDir

True photon arrival direction.

Definition at line 1074 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_psf_radial_kern_rho::m_srcEng

True photon energy.

Definition at line 1075 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_psf_radial_kern_rho::m_srcTime

True photon time.

Definition at line 1076 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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