GammaLib 2.0.0
Loading...
Searching...
No Matches
GModelSpectralExpPlaw::flux_kernel Class Reference

#include <GModelSpectralExpPlaw.hpp>

Inheritance diagram for GModelSpectralExpPlaw::flux_kernel:
GFunction

Public Member Functions

 flux_kernel (const double &norm, const double &index, const double &pivot, const double &ecut)
 
double eval (const double &eng)
 Kernel for photon flux integration.
 
- 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

double m_norm
 Normalization.
 
double m_index
 Index.
 
double m_inv_pivot
 1 / Pivot energy
 
double m_inv_ecut
 1 / Cut off energy
 

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 124 of file GModelSpectralExpPlaw.hpp.

Constructor & Destructor Documentation

◆ flux_kernel()

GModelSpectralExpPlaw::flux_kernel::flux_kernel ( const double & norm,
const double & index,
const double & pivot,
const double & ecut )
inline

Definition at line 126 of file GModelSpectralExpPlaw.hpp.

Member Function Documentation

◆ eval()

double GModelSpectralExpPlaw::flux_kernel::eval ( const double & energy)
virtual

Kernel for photon flux integration.

Parameters
[in]energyEnergy (MeV).

Implements GFunction.

Definition at line 904 of file GModelSpectralExpPlaw.cpp.

References m_index, m_inv_ecut, m_inv_pivot, and m_norm.

Member Data Documentation

◆ m_index

double GModelSpectralExpPlaw::flux_kernel::m_index
protected

Index.

Definition at line 137 of file GModelSpectralExpPlaw.hpp.

Referenced by eval().

◆ m_inv_ecut

double GModelSpectralExpPlaw::flux_kernel::m_inv_ecut
protected

1 / Cut off energy

Definition at line 139 of file GModelSpectralExpPlaw.hpp.

Referenced by eval().

◆ m_inv_pivot

double GModelSpectralExpPlaw::flux_kernel::m_inv_pivot
protected

1 / Pivot energy

Definition at line 138 of file GModelSpectralExpPlaw.hpp.

Referenced by eval().

◆ m_norm

double GModelSpectralExpPlaw::flux_kernel::m_norm
protected

Normalization.

Definition at line 136 of file GModelSpectralExpPlaw.hpp.

Referenced by eval().


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