GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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. 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 GModelSkym_parent
 Sky model. More...
 
const GSkyRegionm_region
 Sky region. 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 212 of file GModelSky.hpp.

Constructor & Destructor Documentation

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

Definition at line 214 of file GModelSky.hpp.

Member Function Documentation

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(), exp(), GModelSpatial::flux(), m_parent, m_region, GEnergy::MeV(), GModelSky::spatial(), GModelSky::spectral(), and GModelSky::value().

Member Data Documentation

const GModelSky* GModelSky::flux_kern::m_parent
protected

Sky model.

Definition at line 220 of file GModelSky.hpp.

Referenced by eval().

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: