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

#include <GCTAModelRadialAcceptance.hpp>

Inheritance diagram for GCTAModelRadialAcceptance::roi_kern:
GFunction

Public Member Functions

 roi_kern (const GCTAModelRadial *parent, const double &roi, const double &dist)
 
double eval (const double &r)
 Integration kernel for the Npred 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 GCTAModelRadialm_parent
 Pointer to radial model. More...
 
double m_roi
 ROI radius in radians. More...
 
double m_cosroi
 Cosine of ROI radius. More...
 
double m_dist
 Distance between pointing and ROI centre in radians. More...
 
double m_cosdist
 Cosine of distance. More...
 
double m_sindist
 Sinus of distance. 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 105 of file GCTAModelRadialAcceptance.hpp.

Constructor & Destructor Documentation

GCTAModelRadialAcceptance::roi_kern::roi_kern ( const GCTAModelRadial parent,
const double &  roi,
const double &  dist 
)
inline

Definition at line 107 of file GCTAModelRadialAcceptance.hpp.

Member Function Documentation

double GCTAModelRadialAcceptance::roi_kern::eval ( const double &  offset)
virtual

Integration kernel for the Npred method.

Parameters
[in]offsetOffset angle (radians).

Computes

\[N_{\rm pred} = \int_{\rm ROI} r(\theta) \sin \theta {\rm d}\phi\]

where \(r(\theta)\) is the radial acceptance function, \(\theta\) is the measured offset angle from the pointing direction in radians, and \(\phi\) is the measured azimuth angle. The integration is done over the arc of the azimuth angle that lies within the ROI. This integration is done analytically using the "roi_arclength" support function.

Implements GFunction.

Definition at line 1041 of file GCTAModelRadialAcceptance.cpp.

References GCTAModelRadial::eval(), m_cosdist, m_cosroi, m_dist, m_parent, m_roi, m_sindist, gammalib::rad2deg, GCTAModelRadialAcceptance::radial(), gammalib::roi_arclength(), and sin().

Member Data Documentation

double GCTAModelRadialAcceptance::roi_kern::m_cosdist
protected

Cosine of distance.

Definition at line 120 of file GCTAModelRadialAcceptance.hpp.

Referenced by eval().

double GCTAModelRadialAcceptance::roi_kern::m_cosroi
protected

Cosine of ROI radius.

Definition at line 118 of file GCTAModelRadialAcceptance.hpp.

Referenced by eval().

double GCTAModelRadialAcceptance::roi_kern::m_dist
protected

Distance between pointing and ROI centre in radians.

Definition at line 119 of file GCTAModelRadialAcceptance.hpp.

Referenced by eval().

const GCTAModelRadial* GCTAModelRadialAcceptance::roi_kern::m_parent
protected

Pointer to radial model.

Definition at line 116 of file GCTAModelRadialAcceptance.hpp.

Referenced by eval().

double GCTAModelRadialAcceptance::roi_kern::m_roi
protected

ROI radius in radians.

Definition at line 117 of file GCTAModelRadialAcceptance.hpp.

Referenced by eval().

double GCTAModelRadialAcceptance::roi_kern::m_sindist
protected

Sinus of distance.

Definition at line 121 of file GCTAModelRadialAcceptance.hpp.

Referenced by eval().


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