GammaLib  2.1.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GModelSpectralSuperExpPlaw::flux_kernel Class Reference

#include <GModelSpectralSuperExpPlaw.hpp>

Inheritance diagram for GModelSpectralSuperExpPlaw::flux_kernel:
GFunction

Public Member Functions

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

double m_norm
 Normalization. More...
 
double m_index1
 Index1. More...
 
double m_inv_pivot
 1 / Pivot energy More...
 
double m_inv_ecut
 1 / Cut off energy More...
 
double m_index2
 Index2. 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 130 of file GModelSpectralSuperExpPlaw.hpp.

Constructor & Destructor Documentation

GModelSpectralSuperExpPlaw::flux_kernel::flux_kernel ( const double &  norm,
const double &  index1,
const double &  pivot,
const double &  ecut,
const double &  index2 
)
inline

Definition at line 132 of file GModelSpectralSuperExpPlaw.hpp.

Member Function Documentation

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

Kernel for photon flux integration.

Parameters
[in]energyEnergy (MeV).

Implements GFunction.

Definition at line 955 of file GModelSpectralSuperExpPlaw.cpp.

References exp(), m_index1, m_index2, m_inv_ecut, m_inv_pivot, m_norm, and pow().

Member Data Documentation

double GModelSpectralSuperExpPlaw::flux_kernel::m_index1
protected

Index1.

Definition at line 145 of file GModelSpectralSuperExpPlaw.hpp.

Referenced by eval().

double GModelSpectralSuperExpPlaw::flux_kernel::m_index2
protected

Index2.

Definition at line 148 of file GModelSpectralSuperExpPlaw.hpp.

Referenced by eval().

double GModelSpectralSuperExpPlaw::flux_kernel::m_inv_ecut
protected

1 / Cut off energy

Definition at line 147 of file GModelSpectralSuperExpPlaw.hpp.

Referenced by eval().

double GModelSpectralSuperExpPlaw::flux_kernel::m_inv_pivot
protected

1 / Pivot energy

Definition at line 146 of file GModelSpectralSuperExpPlaw.hpp.

Referenced by eval().

double GModelSpectralSuperExpPlaw::flux_kernel::m_norm
protected

Normalization.

Definition at line 144 of file GModelSpectralSuperExpPlaw.hpp.

Referenced by eval().


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