GammaLib 2.0.0
Loading...
Searching...
No Matches
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.
 
- Public Member Functions inherited from GFunction
 GFunction (void)
 Void constructor.
 
 GFunction (const GFunction &function)
 Copy constructor.
 
virtual ~GFunction (void)
 Destructor.
 
GFunctionoperator= (const GFunction &function)
 Assignment operator.
 

Protected Attributes

const GCTABackgroundm_bgd
 Pointer to background.
 
double m_logE
 Log10 of energy.
 
GCTAInstDir m_roi_centre
 RoI centre.
 
int m_iter
 Romberg iterations.
 

Additional Inherited Members

- Protected Member Functions inherited from GFunction
void init_members (void)
 Initialise class members.
 
void copy_members (const GFunction &function)
 Copy class members.
 
void free_members (void)
 Delete class members.
 

Detailed Description

Definition at line 94 of file GCTAModelIrfBackground.hpp.

Constructor & Destructor Documentation

◆ npred_roi_kern_theta()

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

◆ eval()

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 1062 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(), gammalib::str(), gammalib::twopi, and gammalib::warning().

Member Data Documentation

◆ m_bgd

const GCTABackground* GCTAModelIrfBackground::npred_roi_kern_theta::m_bgd
protected

Pointer to background.

Definition at line 106 of file GCTAModelIrfBackground.hpp.

Referenced by eval().

◆ m_iter

int GCTAModelIrfBackground::npred_roi_kern_theta::m_iter
protected

Romberg iterations.

Definition at line 109 of file GCTAModelIrfBackground.hpp.

Referenced by eval().

◆ m_logE

double GCTAModelIrfBackground::npred_roi_kern_theta::m_logE
protected

Log10 of energy.

Definition at line 107 of file GCTAModelIrfBackground.hpp.

Referenced by eval().

◆ m_roi_centre

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: