GammaLib
2.1.0.dev
|
#include <GCTAModelSpatial.hpp>
Public Member Functions | |
npred_roi_kern_theta (const GCTAModelSpatial *spatial, const GEnergy &energy, const GTime &time, const GCTAInstDir &roi_centre, const int &min_iter, const int &max_iter) | |
double | eval (const double &theta) |
Kernel for offset angle integration of spatial component. 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 GCTAModelSpatial * | m_spatial |
Pointer to spatial component. More... | |
GEnergy | m_energy |
Energy. More... | |
GTime | m_time |
Time. More... | |
GCTAInstDir | m_roi_centre |
RoI centre. More... | |
int | m_min_iter |
Minimum number of Romberg iterations. More... | |
int | m_max_iter |
Maximum number of Romberg iterations. 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 101 of file GCTAModelSpatial.hpp.
|
inline |
Definition at line 103 of file GCTAModelSpatial.hpp.
|
virtual |
Kernel for offset angle integration of spatial component.
[in] | theta | Offset angle from RoI centre (radians). |
Computes
\[ K(\rho | E, t) = \sin \theta \times \int_{0}^{2\pi} B(\theta,\phi | E, t) d\phi \]
where \(B(\theta,\phi | E, t)\) is the spatial component of the background model for a specific observed energy \(E\) and time \(t\).
Implements GFunction.
Definition at line 495 of file GCTAModelSpatial.cpp.
References GIntegral::fixed_iter(), g_npred_resolution, gammalib::is_infinite(), gammalib::is_notanumber(), gammalib::iter_phi(), m_energy, m_max_iter, m_min_iter, m_roi_centre, m_spatial, m_time, GIntegral::romberg(), sin(), gammalib::str(), gammalib::twopi, and gammalib::warning().
|
protected |
|
protected |
Maximum number of Romberg iterations.
Definition at line 122 of file GCTAModelSpatial.hpp.
Referenced by eval().
|
protected |
Minimum number of Romberg iterations.
Definition at line 121 of file GCTAModelSpatial.hpp.
Referenced by eval().
|
protected |
|
protected |
Pointer to spatial component.
Definition at line 117 of file GCTAModelSpatial.hpp.
Referenced by eval().
|
protected |