GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cta_nroi_radial_kern_omega Class Reference

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_nroi_radial_kern_omega:
GFunction

Public Member Functions

 cta_nroi_radial_kern_omega (const GCTAResponseIrf *rsp, const GCTAObservation *obs, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime, double sin_rho, double cos_rho)
 
double eval (const double &omega)
 Kernel for azimuth angle Nroi integration of radial 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 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_cos_rho
 Cosine of offset angle. More...
 
double m_sin_rho
 Sine of offset angle. 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

Definition at line 394 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_nroi_radial_kern_omega::cta_nroi_radial_kern_omega ( const GCTAResponseIrf rsp,
const GCTAObservation obs,
const GMatrix rot,
const GEnergy srcEng,
const GTime srcTime,
const GEnergy obsEng,
const GTime obsTime,
double  sin_rho,
double  cos_rho 
)
inline

Definition at line 396 of file GCTAResponse_helpers.hpp.

Member Function Documentation

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

Kernel for azimuth angle Nroi integration of radial model.

Parameters
[in]omegaAzimuth angle (radians).
Todo:
Re-consider formula for possible simplification (dumb matrix multiplication is definitely not the fastest way to do that computation).

Implements GFunction.

Definition at line 637 of file GCTAResponse_helpers.cpp.

References GSkyDir::celvector(), cos(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_rho, m_obs, m_obsEng, m_obsTime, m_rot, m_rsp, m_sin_rho, m_srcEng, m_srcTime, GCTAResponseIrf::nirf(), and sin().

Member Data Documentation

double cta_nroi_radial_kern_omega::m_cos_rho
protected

Cosine of offset angle.

Definition at line 423 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAObservation* cta_nroi_radial_kern_omega::m_obs
protected

CTA observation.

Definition at line 417 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_nroi_radial_kern_omega::m_obsEng
protected

Observed photon energy.

Definition at line 421 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_nroi_radial_kern_omega::m_obsTime
protected

Observed photon arrival time.

Definition at line 422 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GMatrix* cta_nroi_radial_kern_omega::m_rot
protected

Rotation matrix.

Definition at line 418 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseIrf* cta_nroi_radial_kern_omega::m_rsp
protected

CTA response.

Definition at line 416 of file GCTAResponse_helpers.hpp.

Referenced by eval().

double cta_nroi_radial_kern_omega::m_sin_rho
protected

Sine of offset angle.

Definition at line 424 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_nroi_radial_kern_omega::m_srcEng
protected

True photon energy.

Definition at line 419 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_nroi_radial_kern_omega::m_srcTime
protected

True photon arrival time.

Definition at line 420 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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