GammaLib 2.0.0
Loading...
Searching...
No Matches
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.
 
int size (void) const
 
GVector eval (const double &etrue)
 Evaluate energy dispersion integration kernel.
 
- Public Member Functions inherited from GFunctions
 GFunctions (void)
 Void constructor.
 
 GFunctions (const GFunctions &functions)
 Copy constructor.
 
virtual ~GFunctions (void)
 Destructor.
 
GFunctionsoperator= (const GFunctions &functions)
 Assignment operator.
 

Protected Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 172 of file GResponse.hpp.

Constructor & Destructor Documentation

◆ edisp_kerns()

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(), size(), GModelSky::spectral(), and GModelSky::temporal().

Member Function Documentation

◆ eval()

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().

◆ size()

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

Implements GFunctions.

Definition at line 180 of file GResponse.hpp.

References m_size.

Referenced by edisp_kerns().

Member Data Documentation

◆ m_event

const GEvent* GResponse::edisp_kerns::m_event
protected

Event.

Definition at line 186 of file GResponse.hpp.

Referenced by edisp_kerns().

◆ m_grad

bool GResponse::edisp_kerns::m_grad
protected

Gradient flag.

Definition at line 190 of file GResponse.hpp.

Referenced by edisp_kerns().

◆ m_model

const GModelSky* GResponse::edisp_kerns::m_model
protected

Sky model.

Definition at line 185 of file GResponse.hpp.

Referenced by edisp_kerns().

◆ m_obs

const GObservation* GResponse::edisp_kerns::m_obs
protected

Observation.

Definition at line 184 of file GResponse.hpp.

Referenced by edisp_kerns().

◆ m_parent

const GResponse* GResponse::edisp_kerns::m_parent
protected

Response.

Definition at line 183 of file GResponse.hpp.

Referenced by edisp_kerns().

◆ m_pars

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

Parameter pointers.

Definition at line 188 of file GResponse.hpp.

Referenced by edisp_kerns().

◆ m_size

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().

◆ m_srcTime

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: