GammaLib 2.0.0
Loading...
Searching...
No Matches
GObservation::npred_spec_kern Class Reference

#include <GObservation.hpp>

Inheritance diagram for GObservation::npred_spec_kern:
GFunction

Public Member Functions

 npred_spec_kern (const GObservation *parent, const GModel *model, const GTime *obsTime)
 
double eval (const double &x)
 Integration kernel for npred_spec() method.
 
- 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 GObservationm_parent
 Observation.
 
const GModelm_model
 Model.
 
const GTimem_time
 Time.
 

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 191 of file GObservation.hpp.

Constructor & Destructor Documentation

◆ npred_spec_kern()

GObservation::npred_spec_kern::npred_spec_kern ( const GObservation * parent,
const GModel * model,
const GTime * obsTime )
inline

Definition at line 193 of file GObservation.hpp.

Member Function Documentation

◆ eval()

double GObservation::npred_spec_kern::eval ( const double & x)
virtual

Integration kernel for npred_spec() method.

Parameters
[in]xFunction value.

This method implements the integration kernel needed for the npred_spec() method. If G_LN_ENERGY_INT is defined the energy integration is done logarithmically, i.e. x is given in ln(energy) instead of energy.

Implements GFunction.

Definition at line 2020 of file GObservation.cpp.

References gammalib::is_infinite(), gammalib::is_notanumber(), and GEnergy::MeV().

Member Data Documentation

◆ m_model

const GModel* GObservation::npred_spec_kern::m_model
protected

Model.

Definition at line 202 of file GObservation.hpp.

◆ m_parent

const GObservation* GObservation::npred_spec_kern::m_parent
protected

Observation.

Definition at line 201 of file GObservation.hpp.

◆ m_time

const GTime* GObservation::npred_spec_kern::m_time
protected

Time.

Definition at line 203 of file GObservation.hpp.


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