All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GObservation::npred_spec_kern Class Reference

#include <GObservation.hpp>

Inheritance diagram for GObservation::npred_spec_kern:

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. 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 GObservationm_parent
 Observation. More...
const GModelm_model
 Model. More...
const GTimem_time
 Time. 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 180 of file GObservation.hpp.

Constructor & Destructor Documentation

GObservation::npred_spec_kern::npred_spec_kern ( const GObservation parent,
const GModel model,
const GTime obsTime 

Definition at line 182 of file GObservation.hpp.

Member Function Documentation

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

Integration kernel for npred_spec() method.

[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 1537 of file GObservation.cpp.

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

Member Data Documentation

const GModel* GObservation::npred_spec_kern::m_model


Definition at line 191 of file GObservation.hpp.

const GObservation* GObservation::npred_spec_kern::m_parent


Definition at line 190 of file GObservation.hpp.

const GTime* GObservation::npred_spec_kern::m_time


Definition at line 192 of file GObservation.hpp.

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