GammaLib 2.0.0
Loading...
Searching...
No Matches
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.
 
- Public Member Functions inherited from GFunction
 GFunction (void)
 Void constructor.
 
 GFunction (const GFunction &function)
 Copy constructor.
 
virtual ~GFunction (void)
 Destructor.
 
GFunctionoperator= (const GFunction &function)
 Assignment operator.
 

Protected Attributes

const GModelSpatialRadialm_model
 Radial model.
 
GEnergy m_srcEng
 True photon energy.
 
GTime m_srcTime
 True photon arrival time.
 
double m_sin_fact
 sin(delta)*sin(delta_mod)
 
double m_cos_fact
 cos(delta)*cos(delta_mod)
 

Additional Inherited Members

- Protected Member Functions inherited from GFunction
void init_members (void)
 Initialise class members.
 
void copy_members (const GFunction &function)
 Copy class members.
 
void free_members (void)
 Delete class members.
 

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::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

◆ eval()

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 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

◆ m_cos_fact

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().

◆ m_model

const GModelSpatialRadial* cta_psf_radial_kern_phi::m_model
protected

Radial model.

Definition at line 1195 of file GCTAResponse_helpers.hpp.

Referenced by eval().

◆ m_sin_fact

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().

◆ m_srcEng

GEnergy cta_psf_radial_kern_phi::m_srcEng
protected

True photon energy.

Definition at line 1196 of file GCTAResponse_helpers.hpp.

Referenced by eval().

◆ m_srcTime

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: