GammaLib 2.0.0
Loading...
Searching...
No Matches
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.
 
- 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 GCTAResponseIrfm_rsp
 CTA response function.
 
const GObservationm_obs
 Observation.
 
const GModelSkym_model
 Sky model.
 
GTime m_srcTime
 True arrival time.
 
GEnergy m_obsEng
 Measured energy.
 
GTime m_obsTime
 Measured arrival time.
 

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 125 of file GCTAResponse_helpers.hpp.

Constructor & Destructor Documentation

◆ cta_nroi_kern()

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

◆ eval()

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 GModelSpectral::eval(), GModelTemporal::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

◆ m_model

const GModelSky* cta_nroi_kern::m_model
protected

Sky model.

Definition at line 143 of file GCTAResponse_helpers.hpp.

Referenced by eval().

◆ m_obs

const GObservation* cta_nroi_kern::m_obs
protected

Observation.

Definition at line 142 of file GCTAResponse_helpers.hpp.

Referenced by eval().

◆ m_obsEng

GEnergy cta_nroi_kern::m_obsEng
protected

Measured energy.

Definition at line 145 of file GCTAResponse_helpers.hpp.

Referenced by eval().

◆ m_obsTime

GTime cta_nroi_kern::m_obsTime
protected

Measured arrival time.

Definition at line 146 of file GCTAResponse_helpers.hpp.

Referenced by eval().

◆ m_rsp

const GCTAResponseIrf* cta_nroi_kern::m_rsp
protected

CTA response function.

Definition at line 141 of file GCTAResponse_helpers.hpp.

Referenced by eval().

◆ m_srcTime

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: