GammaLib 2.0.0
Loading...
Searching...
No Matches
GCTAModelSpatial::npred_roi_kern_phi Class Reference

#include <GCTAModelSpatial.hpp>

Inheritance diagram for GCTAModelSpatial::npred_roi_kern_phi:
GFunction

Public Member Functions

 npred_roi_kern_phi (const GCTAModelSpatial *spatial, const GEnergy &energy, const GTime &time, const GCTAInstDir &roi_centre, const double &theta)
 
double eval (const double &phi)
 Kernel for azimuth 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.
 
double m_theta
 Offset angle (radians)
 

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 126 of file GCTAModelSpatial.hpp.

Constructor & Destructor Documentation

◆ npred_roi_kern_phi()

GCTAModelSpatial::npred_roi_kern_phi::npred_roi_kern_phi ( const GCTAModelSpatial * spatial,
const GEnergy & energy,
const GTime & time,
const GCTAInstDir & roi_centre,
const double & theta )
inline

Definition at line 128 of file GCTAModelSpatial.hpp.

Member Function Documentation

◆ eval()

double GCTAModelSpatial::npred_roi_kern_phi::eval ( const double & phi)
virtual

Kernel for azimuth angle integration of spatial component.

Parameters
[in]phiAzimuth angle around RoI centre (radians).

Computes

\[ B(\theta, \phi | E, t) \]

using

\[ {\rm detx} = \theta \cos \phi \]

\[ {\rm dety} = \theta \sin \phi \]

Todo
Verify correct orientation of detx and dety with respect to phi

Implements GFunction.

Definition at line 559 of file GCTAModelSpatial.cpp.

References gammalib::is_infinite(), gammalib::is_notanumber(), gammalib::str(), and gammalib::warning().

Member Data Documentation

◆ m_energy

GEnergy GCTAModelSpatial::npred_roi_kern_phi::m_energy
protected

Energy.

Definition at line 141 of file GCTAModelSpatial.hpp.

◆ m_roi_centre

GCTAInstDir GCTAModelSpatial::npred_roi_kern_phi::m_roi_centre
protected

RoI centre.

Definition at line 143 of file GCTAModelSpatial.hpp.

◆ m_spatial

const GCTAModelSpatial* GCTAModelSpatial::npred_roi_kern_phi::m_spatial
protected

Pointer to spatial component.

Definition at line 140 of file GCTAModelSpatial.hpp.

◆ m_theta

double GCTAModelSpatial::npred_roi_kern_phi::m_theta
protected

Offset angle (radians)

Definition at line 144 of file GCTAModelSpatial.hpp.

◆ m_time

GTime GCTAModelSpatial::npred_roi_kern_phi::m_time
protected

Time.

Definition at line 142 of file GCTAModelSpatial.hpp.


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