GammaLib 2.0.0
Loading...
Searching...
No Matches
GModelSky::flux_kern Class Reference

#include <GModelSky.hpp>

Inheritance diagram for GModelSky::flux_kern:
GFunction

Public Member Functions

 flux_kern (const GModelSky *parent, const GSkyRegion *region)
 
double eval (const double &x)
 Integration kernel for flux_kern() class.
 
- 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 GModelSkym_parent
 Sky model.
 
const GSkyRegionm_region
 Sky region.
 

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 212 of file GModelSky.hpp.

Constructor & Destructor Documentation

◆ flux_kern()

GModelSky::flux_kern::flux_kern ( const GModelSky * parent,
const GSkyRegion * region )
inline

Definition at line 214 of file GModelSky.hpp.

Member Function Documentation

◆ eval()

double GModelSky::flux_kern::eval ( const double & x)
virtual

Integration kernel for flux_kern() class.

Parameters
[in]xFunction value.
Returns
Photon flux (erg/cm2/s/MeV)

This method implements the integration kernel needed for the flux() method.

Implements GFunction.

Definition at line 2212 of file GModelSky.cpp.

References GModelSpectral::eval(), GModelSpatial::flux(), m_parent, m_region, GEnergy::MeV(), GModelSky::spatial(), GModelSky::spectral(), and GModelSky::value().

Member Data Documentation

◆ m_parent

const GModelSky* GModelSky::flux_kern::m_parent
protected

Sky model.

Definition at line 220 of file GModelSky.hpp.

Referenced by eval().

◆ m_region

const GSkyRegion* GModelSky::flux_kern::m_region
protected

Sky region.

Definition at line 221 of file GModelSky.hpp.

Referenced by eval().


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