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

Integration kernel for npsf() method. More...

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_npsf_kern_rad_azsym:
GFunction

Public Member Functions

 cta_npsf_kern_rad_azsym (const GCTAResponseIrf *rsp, const double &roi, const double &psf, const double &logE, const double &theta, const double &phi, const double &zenith, const double &azimuth)
 
double eval (const double &delta)
 Integration kernel for npsf() method. 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 GCTAResponseIrfm_rsp
 CTA response function. More...
 
double m_roi
 ROI radius in radians. More...
 
double m_cosroi
 Cosine of ROI radius. More...
 
double m_psf
 PSF-ROI centre distance in radians. More...
 
double m_cospsf
 Cosine of PSF-ROI centre distance. More...
 
double m_sinpsf
 Sine of PSF-ROI centre distance. More...
 
double m_logE
 Log10 of true photon energy (E/TeV). More...
 
double m_theta
 Offset angle of source in camera system. More...
 
double m_phi
 Azimuth angle of source in camera system. More...
 
double m_zenith
 Zenith angle of source in Earth system. More...
 
double m_azimuth
 Azimuth angle of source in Earth system. 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

Integration kernel for npsf() method.

This class implements the integration kernel needed for the npsf() method. It performs an azimuthal integration of the Point Spread Function (PSF) for a given offset angle \(delta\) using

\[ K(\delta) = \int_{0}^{\phi} PSF(\delta) d\phi \]

(an offset angle of \(\delta=0\) corresponds to the centre of the PSF).

Definition at line 76 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_npsf_kern_rad_azsym::cta_npsf_kern_rad_azsym ( const GCTAResponseIrf rsp,
const double &  roi,
const double &  psf,
const double &  logE,
const double &  theta,
const double &  phi,
const double &  zenith,
const double &  azimuth 
)
inline

Definition at line 78 of file GCTAResponse_helpers.hpp.

Member Function Documentation

double cta_npsf_kern_rad_azsym::eval ( const double &  delta)
virtual

Integration kernel for npsf() method.

Parameters
[in]deltaDistance from PSF centre (radians).
Returns
Azimuthally integrated PSF.

Computes

\[ \int_{0}^{\phi} PSF(\delta) d\phi \]

for a given offset angle \(\delta\).

The azimuthal integration is performed over an arclength given by \(\phi\). The method actually assumes that the PSF is azimuthally symmetric, hence it just multiplies the PSF value by the arclength times the sinus of the offset angle.

Implements GFunction.

Definition at line 246 of file GCTAResponse_helpers.cpp.

References gammalib::is_infinite(), gammalib::is_notanumber(), m_azimuth, m_cospsf, m_cosroi, m_logE, m_phi, m_psf, m_roi, m_rsp, m_sinpsf, m_theta, m_zenith, GCTAResponseIrf::psf(), gammalib::roi_arclength(), and sin().

Member Data Documentation

double cta_npsf_kern_rad_azsym::m_azimuth
protected

Azimuth angle of source in Earth system.

Definition at line 109 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_cospsf
protected

Cosine of PSF-ROI centre distance.

Definition at line 103 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_cosroi
protected

Cosine of ROI radius.

Definition at line 101 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_logE
protected

Log10 of true photon energy (E/TeV).

Definition at line 105 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_phi
protected

Azimuth angle of source in camera system.

Definition at line 107 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_psf
protected

PSF-ROI centre distance in radians.

Definition at line 102 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_roi
protected

ROI radius in radians.

Definition at line 100 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseIrf* cta_npsf_kern_rad_azsym::m_rsp
protected

CTA response function.

Definition at line 99 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_sinpsf
protected

Sine of PSF-ROI centre distance.

Definition at line 104 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_theta
protected

Offset angle of source in camera system.

Definition at line 106 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_npsf_kern_rad_azsym::m_zenith
protected

Zenith angle of source in Earth system.

Definition at line 108 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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