GammaLib 2.1.0.dev
Loading...
Searching...
No Matches
GCTAModelSpatial::npred_roi_kern_theta Class Reference

#include <GCTAModelSpatial.hpp>

Inheritance diagram for GCTAModelSpatial::npred_roi_kern_theta:
GFunction

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.
 
- 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 GCTAModelSpatialm_spatial
 Pointer to spatial component.
 
GEnergy m_energy
 Energy.
 
GTime m_time
 Time.
 
GCTAInstDir m_roi_centre
 RoI centre.
 
int m_min_iter
 Minimum number of Romberg iterations.
 
int m_max_iter
 Maximum number of 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 101 of file GCTAModelSpatial.hpp.

Constructor & Destructor Documentation

◆ npred_roi_kern_theta()

GCTAModelSpatial::npred_roi_kern_theta::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 )
inline

Definition at line 103 of file GCTAModelSpatial.hpp.

Member Function Documentation

◆ eval()

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

Kernel for offset angle integration of spatial component.

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

Member Data Documentation

◆ m_energy

GEnergy GCTAModelSpatial::npred_roi_kern_theta::m_energy
protected

Energy.

Definition at line 118 of file GCTAModelSpatial.hpp.

Referenced by eval().

◆ m_max_iter

int GCTAModelSpatial::npred_roi_kern_theta::m_max_iter
protected

Maximum number of Romberg iterations.

Definition at line 122 of file GCTAModelSpatial.hpp.

Referenced by eval().

◆ m_min_iter

int GCTAModelSpatial::npred_roi_kern_theta::m_min_iter
protected

Minimum number of Romberg iterations.

Definition at line 121 of file GCTAModelSpatial.hpp.

Referenced by eval().

◆ m_roi_centre

GCTAInstDir GCTAModelSpatial::npred_roi_kern_theta::m_roi_centre
protected

RoI centre.

Definition at line 120 of file GCTAModelSpatial.hpp.

Referenced by eval().

◆ m_spatial

const GCTAModelSpatial* GCTAModelSpatial::npred_roi_kern_theta::m_spatial
protected

Pointer to spatial component.

Definition at line 117 of file GCTAModelSpatial.hpp.

Referenced by eval().

◆ m_time

GTime GCTAModelSpatial::npred_roi_kern_theta::m_time
protected

Time.

Definition at line 119 of file GCTAModelSpatial.hpp.

Referenced by eval().


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