GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cta_nroi_kern Class Reference

#include <GCTAResponse_helpers.hpp>

Inheritance diagram for cta_nroi_kern:
GFunction

Public Member Functions

 cta_nroi_kern (const GCTAResponseIrf *rsp, const GObservation *obs, const GModelSky *model, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime)
 
double eval (const double &etrue)
 Integration kernel for GCTAResponseIrf::nroi 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 GCTAResponseIrfm_rsp
 CTA response function. More...
 
const GObservationm_obs
 Observation. More...
 
const GModelSkym_model
 Sky model. More...
 
GTime m_srcTime
 True arrival time. More...
 
GEnergy m_obsEng
 Measured energy. More...
 
GTime m_obsTime
 Measured arrival 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 125 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

cta_nroi_kern::cta_nroi_kern ( const GCTAResponseIrf rsp,
const GObservation obs,
const GModelSky model,
const GTime srcTime,
const GEnergy obsEng,
const GTime obsTime 
)
inline

Definition at line 127 of file GCTAResponse_helpers.hpp.

Member Function Documentation

double cta_nroi_kern::eval ( const double &  etrue)
virtual

Integration kernel for GCTAResponseIrf::nroi method.

Parameters
[in]etrueTrue photon energy in MeV.
Returns
Nroi.

Implements GFunction.

Definition at line 292 of file GCTAResponse_helpers.cpp.

References GModelTemporal::eval(), GModelSpectral::eval(), m_model, m_obs, m_obsEng, m_obsTime, m_rsp, m_srcTime, GEnergy::MeV(), GCTAResponseIrf::nroi(), GModelSky::spectral(), and GModelSky::temporal().

Member Data Documentation

const GModelSky* cta_nroi_kern::m_model
protected

Sky model.

Definition at line 143 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GObservation* cta_nroi_kern::m_obs
protected

Observation.

Definition at line 142 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GEnergy cta_nroi_kern::m_obsEng
protected

Measured energy.

Definition at line 145 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_nroi_kern::m_obsTime
protected

Measured arrival time.

Definition at line 146 of file GCTAResponse_helpers.hpp.

Referenced by eval().

const GCTAResponseIrf* cta_nroi_kern::m_rsp
protected

CTA response function.

Definition at line 141 of file GCTAResponse_helpers.hpp.

Referenced by eval().

GTime cta_nroi_kern::m_srcTime
protected

True arrival time.

Definition at line 144 of file GCTAResponse_helpers.hpp.

Referenced by eval().


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