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

Kernel for azimuth angle Nroi integration of elliptical model. More...

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_nroi_elliptical_kern_omega:
GFunction

Public Member Functions

 cta_nroi_elliptical_kern_omega (const GCTAResponseIrf *rsp, const GCTAObservation *obs, const GModelSpatialElliptical *model, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime, const double &rho, const double &sin_rho, const double &cos_rho, const double &posangle_roi)
 
double eval (const double &omega)
 Kernel for azimuth angle Nroi integration of elliptical 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 GCTAResponseIrfm_rsp
 CTA response. More...
 
const GCTAObservationm_obs
 CTA observation. More...
 
const GModelSpatialEllipticalm_model
 Elliptical model. More...
 
const GMatrixm_rot
 Rotation matrix. More...
 
GEnergy m_srcEng
 True photon energy. More...
 
GTime m_srcTime
 True photon arrival time. More...
 
GEnergy m_obsEng
 Observed photon energy. More...
 
GTime m_obsTime
 Observed photon arrival time. More...
 
double m_rho
 
double m_sin_rho
 Sine of offset angle. More...
 
double m_cos_rho
 Cosine of offset angle. More...
 
double m_posangle_roi
 Position angle of ROI. 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 azimuth angle Nroi integration of elliptical model.

This class implements the computation of

\[ S_{\rm p}(\rho,\omega | E, t) \, N_{\rm pred}(\rho,\omega) \]

where

  • \(S_{\rm p}(\rho,\omega | E, t)\) is the elliptical model,
  • \(N_{\rm pred}(\rho,\omega)\) is the data space integral of the Instrument Response Function for a point spread function over the Region Of Interest in the reference frame of the elliptical source model
  • \(\rho\) is the distance from the model centre, and
  • \(\omega\) is the azimuth angle is the position angle with respect to the connecting line between the model centre and the observed photon arrival direction.

Definition at line 701 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_nroi_elliptical_kern_omega::cta_nroi_elliptical_kern_omega ( const GCTAResponseIrf rsp,
const GCTAObservation obs,
const GModelSpatialElliptical model,
const GMatrix rot,
const GEnergy srcEng,
const GTime srcTime,
const GEnergy obsEng,
const GTime obsTime,
const double &  rho,
const double &  sin_rho,
const double &  cos_rho,
const double &  posangle_roi 
)
inline

Definition at line 703 of file GCTAResponse_helpers.hpp.

Member Function Documentation

double cta_nroi_elliptical_kern_omega::eval ( const double &  omega)
virtual

Kernel for azimuth angle Nroi integration of elliptical model.

Parameters
[in]omegaAzimuth angle (radians).

Computes

\[ S_{\rm p}(\omega | \rho, E, t) \, N_{\rm pred}(\omega | \rho) \]

where \(\omega\) is the azimuth angle with respect to the model centre, counted counterclockwise from the vector connecting the model centre to the centre of the Region of Interest (ROI), and \(\rho\) is the radial distance from the model centre.

Todo:

Npred computation goes over sky coordinates. This can maybe be optimized to reduce the number of coordinate transformations.

Check whether the Npred omega argument is the right one.

Implements GFunction.

Definition at line 1186 of file GCTAResponse_helpers.cpp.

References GSkyDir::celvector(), cos(), gammalib::deg2rad, GModelSpatialElliptical::eval(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_rho, m_model, m_obs, m_obsEng, m_obsTime, m_posangle_roi, m_rho, m_rot, m_rsp, m_sin_rho, m_srcEng, m_srcTime, GCTAResponseIrf::nirf(), GModelSpatialElliptical::posangle(), gammalib::rad2deg, GModelSpatialElliptical::semimajor(), GModelSpatialElliptical::semiminor(), sin(), and sqrt().

Member Data Documentation

double cta_nroi_elliptical_kern_omega::m_cos_rho
protected

Cosine of offset angle.

Definition at line 739 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GModelSpatialElliptical* cta_nroi_elliptical_kern_omega::m_model
protected

Elliptical model.

Definition at line 731 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAObservation* cta_nroi_elliptical_kern_omega::m_obs
protected

CTA observation.

Definition at line 730 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_nroi_elliptical_kern_omega::m_obsEng
protected

Observed photon energy.

Definition at line 735 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_nroi_elliptical_kern_omega::m_obsTime
protected

Observed photon arrival time.

Definition at line 736 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_nroi_elliptical_kern_omega::m_posangle_roi
protected

Position angle of ROI.

Definition at line 740 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_nroi_elliptical_kern_omega::m_rho
protected

Definition at line 737 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GMatrix* cta_nroi_elliptical_kern_omega::m_rot
protected

Rotation matrix.

Definition at line 732 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseIrf* cta_nroi_elliptical_kern_omega::m_rsp
protected

CTA response.

Definition at line 729 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_nroi_elliptical_kern_omega::m_sin_rho
protected

Sine of offset angle.

Definition at line 738 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_nroi_elliptical_kern_omega::m_srcEng
protected

True photon energy.

Definition at line 733 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_nroi_elliptical_kern_omega::m_srcTime
protected

True photon arrival time.

Definition at line 734 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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