GammaLib
2.0.0
|
#include <GCTAModelRadialAcceptance.hpp>
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... | |
GFunction & | operator= (const GFunction &function) |
Assignment operator. More... | |
Protected Attributes | |
const GCTAModelRadial * | m_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... | |
Definition at line 105 of file GCTAModelRadialAcceptance.hpp.
|
inline |
Definition at line 107 of file GCTAModelRadialAcceptance.hpp.
|
virtual |
Integration kernel for the Npred method.
[in] | offset | Offset 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().
|
protected |
Cosine of distance.
Definition at line 120 of file GCTAModelRadialAcceptance.hpp.
Referenced by eval().
|
protected |
Cosine of ROI radius.
Definition at line 118 of file GCTAModelRadialAcceptance.hpp.
Referenced by eval().
|
protected |
Distance between pointing and ROI centre in radians.
Definition at line 119 of file GCTAModelRadialAcceptance.hpp.
Referenced by eval().
|
protected |
Pointer to radial model.
Definition at line 116 of file GCTAModelRadialAcceptance.hpp.
Referenced by eval().
|
protected |
ROI radius in radians.
Definition at line 117 of file GCTAModelRadialAcceptance.hpp.
Referenced by eval().
|
protected |
Sinus of distance.
Definition at line 121 of file GCTAModelRadialAcceptance.hpp.
Referenced by eval().