GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GCTAModelIrfBackground::npred_roi_kern_theta Class Reference
Inheritance diagram for GCTAModelIrfBackground::npred_roi_kern_theta:
GFunction

Public Member Functions

 npred_roi_kern_theta (const GCTABackground *bgd, const double &logE, const GCTAInstDir &roi_centre, const int &iter)
 
double eval (const double &theta)
 Kernel for offset angle integration of background 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 GCTABackgroundm_bgd
 Pointer to background. More...
 
double m_logE
 Log10 of energy. More...
 
GCTAInstDir m_roi_centre
 RoI centre. More...
 
int m_iter
 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...
 

Detailed Description

Definition at line 94 of file GCTAModelIrfBackground.hpp.

Constructor & Destructor Documentation

GCTAModelIrfBackground::npred_roi_kern_theta::npred_roi_kern_theta ( const GCTABackground bgd,
const double &  logE,
const GCTAInstDir roi_centre,
const int &  iter 
)
inline

Definition at line 96 of file GCTAModelIrfBackground.hpp.

Member Function Documentation

double GCTAModelIrfBackground::npred_roi_kern_theta::eval ( const double &  theta)
virtual

Kernel for offset angle integration of background model.

Parameters
[in]thetaOffset 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 background model for a specific observed energy \(E\) and time \(t\).

Implements GFunction.

Definition at line 1044 of file GCTAModelIrfBackground.cpp.

References GIntegral::fixed_iter(), gammalib::is_infinite(), gammalib::is_notanumber(), m_bgd, m_iter, m_logE, m_roi_centre, GIntegral::romberg(), sin(), gammalib::str(), gammalib::twopi, and gammalib::warning().

Member Data Documentation

const GCTABackground* GCTAModelIrfBackground::npred_roi_kern_theta::m_bgd
protected

Pointer to background.

Definition at line 106 of file GCTAModelIrfBackground.hpp.

Referenced by eval().

int GCTAModelIrfBackground::npred_roi_kern_theta::m_iter
protected

Romberg iterations.

Definition at line 109 of file GCTAModelIrfBackground.hpp.

Referenced by eval().

double GCTAModelIrfBackground::npred_roi_kern_theta::m_logE
protected

Log10 of energy.

Definition at line 107 of file GCTAModelIrfBackground.hpp.

Referenced by eval().

GCTAInstDir GCTAModelIrfBackground::npred_roi_kern_theta::m_roi_centre
protected

RoI centre.

Definition at line 108 of file GCTAModelIrfBackground.hpp.

Referenced by eval().


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