GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GCTAModelAeffBackground::npred_roi_kern_theta Class Reference
Inheritance diagram for GCTAModelAeffBackground::npred_roi_kern_theta:
GFunction

Public Member Functions

 npred_roi_kern_theta (const GCTAAeff *aeff, const double &logE, const GCTAInstDir &roi_centre, const int &iter)
 
double eval (const double &theta)
 Kernel for offset angle integration of effective area 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 GCTAAeffm_aeff
 Pointer to effectve area. 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 97 of file GCTAModelAeffBackground.hpp.

Constructor & Destructor Documentation

GCTAModelAeffBackground::npred_roi_kern_theta::npred_roi_kern_theta ( const GCTAAeff aeff,
const double &  logE,
const GCTAInstDir roi_centre,
const int &  iter 
)
inline

Definition at line 99 of file GCTAModelAeffBackground.hpp.

Member Function Documentation

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

Kernel for offset angle integration of effective area background model.

Parameters
[in]thetaOffset angle from ROI centre (radians).
Returns
Integration kernel value.

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 1176 of file GCTAModelAeffBackground.cpp.

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

Member Data Documentation

const GCTAAeff* GCTAModelAeffBackground::npred_roi_kern_theta::m_aeff
protected

Pointer to effectve area.

Definition at line 109 of file GCTAModelAeffBackground.hpp.

Referenced by eval().

int GCTAModelAeffBackground::npred_roi_kern_theta::m_iter
protected

Romberg iterations.

Definition at line 112 of file GCTAModelAeffBackground.hpp.

Referenced by eval().

double GCTAModelAeffBackground::npred_roi_kern_theta::m_logE
protected

Log10 of energy.

Definition at line 110 of file GCTAModelAeffBackground.hpp.

Referenced by eval().

GCTAInstDir GCTAModelAeffBackground::npred_roi_kern_theta::m_roi_centre
protected

RoI centre.

Definition at line 111 of file GCTAModelAeffBackground.hpp.

Referenced by eval().


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