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

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

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_psf_radial_kern_phi:
GFunction

Public Member Functions

 cta_psf_radial_kern_phi (const GModelSpatialRadial *model, const GEnergy &srcEng, const GTime &srcTime, const double &sin_fact, const double &cos_fact)
 
double eval (const double &phi)
 Kernel for azimuthal radial model integration. 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 GModelSpatialRadialm_model
 Radial model. More...
 
GEnergy m_srcEng
 True photon energy. More...
 
GTime m_srcTime
 True photon arrival time. More...
 
double m_sin_fact
 sin(delta)*sin(delta_mod) More...
 
double m_cos_fact
 cos(delta)*cos(delta_mod) 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 phi angle integration used for stacked analysis.

Definition at line 1181 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_psf_radial_kern_phi::cta_psf_radial_kern_phi ( const GModelSpatialRadial model,
const GEnergy srcEng,
const GTime srcTime,
const double &  sin_fact,
const double &  cos_fact 
)
inline

Definition at line 1183 of file GCTAResponse_helpers.hpp.

Member Function Documentation

double cta_psf_radial_kern_phi::eval ( const double &  phi)
virtual

Kernel for azimuthal radial model integration.

Parameters
[in]phiAzimuth angle (radians).
Returns
Radial model value.

Computes the value of the radial model at the position \((\delta,\phi)\) given in point spread function coordinates. The \(\theta\) angle of the radial model is computed using

\[ \theta = \arccos \left( \cos \delta \cos \zeta + \sin \delta \sin \zeta \cos \phi \right) \]

where \(\delta\) is the angle between true and measured photon direction, \(\zeta\) is the angle between model centre and measured photon direction, and \(\phi\) is the azimuth angle with respect to the measured photon direction, where \(\phi=0\) corresponds to the connecting line between model centre and measured photon direction.

Implements GFunction.

Definition at line 1914 of file GCTAResponse_helpers.cpp.

References gammalib::acos(), cos(), GModelSpatialRadial::eval(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_fact, m_model, m_sin_fact, m_srcEng, m_srcTime, gammalib::rad2deg, and GModelSpatialRadial::theta_max().

Member Data Documentation

double cta_psf_radial_kern_phi::m_cos_fact
protected

cos(delta)*cos(delta_mod)

Definition at line 1199 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatialRadial* cta_psf_radial_kern_phi::m_model
protected

Radial model.

Definition at line 1195 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_radial_kern_phi::m_sin_fact
protected

sin(delta)*sin(delta_mod)

Definition at line 1198 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_psf_radial_kern_phi::m_srcEng
protected

True photon energy.

Definition at line 1196 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_psf_radial_kern_phi::m_srcTime
protected

True photon arrival time.

Definition at line 1197 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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