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

#include <GResponse.hpp>

Inheritance diagram for GResponse::edisp_kerns:
GFunctions

Public Member Functions

 edisp_kerns (const GResponse *parent, const GObservation *obs, const GModelSky *model, const GEvent *event, const GTime &srcTime, const bool &grad)
 Constructor for energy dispersion integration kernels class. More...
 
int size (void) const
 
GVector eval (const double &etrue)
 Evaluate energy dispersion integration kernel. More...
 
- Public Member Functions inherited from GFunctions
 GFunctions (void)
 Void constructor. More...
 
 GFunctions (const GFunctions &functions)
 Copy constructor. More...
 
virtual ~GFunctions (void)
 Destructor. More...
 
GFunctionsoperator= (const GFunctions &functions)
 Assignment operator. More...
 

Protected Attributes

const GResponsem_parent
 Response. More...
 
const GObservationm_obs
 Observation. More...
 
const GModelSkym_model
 Sky model. More...
 
const GEventm_event
 Event. More...
 
int m_size
 Array of values and gradients. More...
 
std::vector< GModelPar * > m_pars
 Parameter pointers. More...
 
GTime m_srcTime
 True arrival time. More...
 
bool m_grad
 Gradient flag. More...
 

Additional Inherited Members

- Protected Member Functions inherited from GFunctions
void init_members (void)
 Initialise class members. More...
 
void copy_members (const GFunctions &functions)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 

Detailed Description

Definition at line 172 of file GResponse.hpp.

Constructor & Destructor Documentation

GResponse::edisp_kerns::edisp_kerns ( const GResponse parent,
const GObservation obs,
const GModelSky model,
const GEvent event,
const GTime srcTime,
const bool &  grad 
)

Constructor for energy dispersion integration kernels class.

Parameters
[in]parentPointer to response.
[in]obsPointer to observation.
[in]modelPointer to sky model.
[in]eventPointer to event.
[in]srcTimeTrue time.
[in]gradEvaluate gradients?

This method constructs the integration kernel needed for the energy dispersion computation.

Definition at line 1891 of file GResponse.cpp.

References GOptimizerPar::has_grad(), GModel::has_scales(), GObservation::instrument(), GOptimizerPar::is_free(), m_event, m_grad, m_model, m_obs, m_parent, m_pars, m_size, m_srcTime, GOptimizerPar::name(), GModel::scale(), GModel::scales(), GModelTemporal::size(), GModelSpectral::size(), GModelSky::spectral(), and GModelSky::temporal().

Member Function Documentation

GVector GResponse::edisp_kerns::eval ( const double &  etrue)
virtual

Evaluate energy dispersion integration kernel.

Parameters
[in]etrueTrue photon energy in MeV.

This method implements the integration kernel needed for the GResponse::edisp_kern() class.

Implements GFunctions.

Definition at line 2012 of file GResponse.cpp.

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

int GResponse::edisp_kerns::size ( void  ) const
inlinevirtual

Implements GFunctions.

Definition at line 180 of file GResponse.hpp.

References m_size.

Member Data Documentation

const GEvent* GResponse::edisp_kerns::m_event
protected

Event.

Definition at line 186 of file GResponse.hpp.

Referenced by edisp_kerns().

bool GResponse::edisp_kerns::m_grad
protected

Gradient flag.

Definition at line 190 of file GResponse.hpp.

Referenced by edisp_kerns().

const GModelSky* GResponse::edisp_kerns::m_model
protected

Sky model.

Definition at line 185 of file GResponse.hpp.

Referenced by edisp_kerns().

const GObservation* GResponse::edisp_kerns::m_obs
protected

Observation.

Definition at line 184 of file GResponse.hpp.

Referenced by edisp_kerns().

const GResponse* GResponse::edisp_kerns::m_parent
protected

Response.

Definition at line 183 of file GResponse.hpp.

Referenced by edisp_kerns().

std::vector<GModelPar*> GResponse::edisp_kerns::m_pars
protected

Parameter pointers.

Definition at line 188 of file GResponse.hpp.

Referenced by edisp_kerns().

int GResponse::edisp_kerns::m_size
protected

Array of values and gradients.

Definition at line 187 of file GResponse.hpp.

Referenced by edisp_kerns(), and size().

GTime GResponse::edisp_kerns::m_srcTime
protected

True arrival time.

Definition at line 189 of file GResponse.hpp.

Referenced by edisp_kerns().


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