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

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

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_psf_diffuse_kern_phi:
GFunction

Public Member Functions

 cta_psf_diffuse_kern_phi (const GModelSpatial *model, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const double &sin_delta, const double &cos_delta)
 
double eval (const double &phi)
 Kernel for map integration of spatial model. 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 GModelSpatialm_model
 Spatial model. More...
 
const GMatrixm_rot
 Rotation matrix. More...
 
GEnergy m_srcEng
 True photon energy. More...
 
GTime m_srcTime
 True photon arrival time. More...
 
double m_sin_delta
 sin(delta) More...
 
double m_cos_delta
 cos(delta) 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 1375 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_psf_diffuse_kern_phi::cta_psf_diffuse_kern_phi ( const GModelSpatial model,
const GMatrix rot,
const GEnergy srcEng,
const GTime srcTime,
const double &  sin_delta,
const double &  cos_delta 
)
inline

Definition at line 1377 of file GCTAResponse_helpers.hpp.

Member Function Documentation

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

Kernel for map integration of spatial model.

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

Computes the value of the spatial model at the position (delta,phi) given in point spread function coordinates. The transformation from point spread function coordinates into sky coordinates is done using a rotation matrix that is pre-computed on entry.

Implements GFunction.

Definition at line 2314 of file GCTAResponse_helpers.cpp.

References GSkyDir::celvector(), cos(), GModelSpatial::eval(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_delta, m_model, m_rot, m_sin_delta, m_srcEng, m_srcTime, and sin().

Member Data Documentation

double cta_psf_diffuse_kern_phi::m_cos_delta
protected

cos(delta)

Definition at line 1396 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatial* cta_psf_diffuse_kern_phi::m_model
protected

Spatial model.

Definition at line 1391 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GMatrix* cta_psf_diffuse_kern_phi::m_rot
protected

Rotation matrix.

Definition at line 1392 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_psf_diffuse_kern_phi::m_sin_delta
protected

sin(delta)

Definition at line 1395 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_psf_diffuse_kern_phi::m_srcEng
protected

True photon energy.

Definition at line 1393 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_psf_diffuse_kern_phi::m_srcTime
protected

True photon arrival time.

Definition at line 1394 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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