GammaLib  2.1.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GCTAEdisp2D::edisp_ereco_kern Class Reference
Inheritance diagram for GCTAEdisp2D::edisp_ereco_kern:
GFunction

Public Member Functions

 edisp_ereco_kern (const GCTAEdisp2D *parent, const GEnergy &etrue, const double &theta)
 
double eval (const double &log10Ereco)
 Integration kernel for GCTAEdisp2D::edisp_ereco_kern class. 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 GCTAEdisp2Dm_parent
 Pointer to parent class. More...
 
GEnergy m_etrue
 True photon energy. More...
 
double m_theta
 Offset angle. 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 209 of file GCTAEdisp2D.hpp.

Constructor & Destructor Documentation

GCTAEdisp2D::edisp_ereco_kern::edisp_ereco_kern ( const GCTAEdisp2D parent,
const GEnergy etrue,
const double &  theta 
)
inline

Definition at line 211 of file GCTAEdisp2D.hpp.

Member Function Documentation

double GCTAEdisp2D::edisp_ereco_kern::eval ( const double &  log10Ereco)
virtual

Integration kernel for GCTAEdisp2D::edisp_ereco_kern class.

Parameters
[in]log10ErecoLog10 of reconstructed energy ( \(\log_{10}\) MeV).
Returns
Energy dispersion ( \((\log_{10}\) MeV \()^{-1}\)).

This method implements the function

\[ E_{\rm disp}(\log_{10} E_{\rm reco} | E_{\rm true}, \theta) = E_{\rm disp}(m | E_{\rm true}, \theta) \times \frac{\log 10 \times E_{\rm reco}}{E_{\rm true}} \]

which is the integration kernel needed for the GCTAEdisp2D::edisp_ereco_kern class. The class is used by GCTAEdisp2D::normalize_table() to integrate the energy dispersion information using

\[ \int_{\log_{10} E_{\rm reco}^{\rm min}}^{\log_{10} E_{\rm reco}^{\rm max}} E_{\rm disp}(\log_{10} E_{\rm reco} | E_{\rm true}, \theta) \, d(\log_{10} E_{\rm reco}) \]

Implements GFunction.

Definition at line 2257 of file GCTAEdisp2D.cpp.

References gammalib::is_infinite(), gammalib::is_notanumber(), gammalib::ln10, GEnergy::log10MeV(), m_etrue, m_parent, m_theta, and GEnergy::MeV().

Member Data Documentation

GEnergy GCTAEdisp2D::edisp_ereco_kern::m_etrue
protected

True photon energy.

Definition at line 220 of file GCTAEdisp2D.hpp.

Referenced by eval().

const GCTAEdisp2D* GCTAEdisp2D::edisp_ereco_kern::m_parent
protected

Pointer to parent class.

Definition at line 219 of file GCTAEdisp2D.hpp.

Referenced by eval().

double GCTAEdisp2D::edisp_ereco_kern::m_theta
protected

Offset angle.

Definition at line 221 of file GCTAEdisp2D.hpp.

Referenced by eval().


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