GammaLib 2.0.0
Loading...
Searching...
No Matches
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.
 
- 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 GCTAEdisp2Dm_parent
 Pointer to parent class.
 
GEnergy m_etrue
 True photon energy.
 
double m_theta
 Offset angle.
 

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 209 of file GCTAEdisp2D.hpp.

Constructor & Destructor Documentation

◆ edisp_ereco_kern()

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

◆ eval()

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

◆ m_etrue

GEnergy GCTAEdisp2D::edisp_ereco_kern::m_etrue
protected

True photon energy.

Definition at line 220 of file GCTAEdisp2D.hpp.

Referenced by eval().

◆ m_parent

const GCTAEdisp2D* GCTAEdisp2D::edisp_ereco_kern::m_parent
protected

Pointer to parent class.

Definition at line 219 of file GCTAEdisp2D.hpp.

Referenced by eval().

◆ m_theta

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: