GammaLib
2.0.0
|
Kernel for IRF azimuth angle integration of the diffuse source model. More...
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_irf_diffuse_kern_phi (const GCTAResponseIrf *rsp, const GModelSpatial *model, const GMatrix *rot, const double &zenith, const double &azimuth, const GEnergy &srcEng, const GTime &srcTime, const double &srcLogEng, const GEnergy &obsEng, const double &sin_theta, const double &cos_theta, const double &sin_ph, const double &cos_ph) | |
double | eval (const double &phi) |
Kernel for IRF azimuth angle integration of the diffuse source model. More... | |
Public Member Functions inherited from GFunction | |
GFunction (void) | |
Void constructor. More... | |
GFunction (const GFunction &function) | |
Copy constructor. More... | |
virtual | ~GFunction (void) |
Destructor. More... | |
GFunction & | operator= (const GFunction &function) |
Assignment operator. More... | |
Protected Attributes | |
const GCTAResponseIrf * | m_rsp |
CTA response. More... | |
const GModelSpatial * | m_model |
Spatial model. More... | |
const GMatrix * | m_rot |
Rotation matrix. More... | |
double | m_zenith |
Zenith angle. More... | |
double | m_azimuth |
Azimuth angle. More... | |
GEnergy | m_srcEng |
True photon energy. More... | |
GTime | m_srcTime |
True photon arrival time. More... | |
double | m_srcLogEng |
True photon log energy. More... | |
GEnergy | m_obsEng |
Measured event energy. More... | |
double | m_sin_theta |
Sine of offset angle. More... | |
double | m_cos_theta |
Cosine of offset angle. More... | |
double | m_sin_ph |
Sine term in angular distance equation. More... | |
double | m_cos_ph |
Cosine term in angular distance equation. More... | |
GVector | m_native |
Pre-allocate memory for native coordinates. More... | |
GPhoton | m_photon |
Pre-allocate memory for a photon object. 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... | |
Kernel for IRF azimuth angle integration of the diffuse source model.
This class implements the computation of
\[ S_{\rm p}(\theta, \phi | E, t) \, Aeff(\theta, \phi) \, Edisp(\theta, \phi) \]
where
Definition at line 852 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 854 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for IRF azimuth angle integration of the diffuse source model.
[in] | phi | Azimuth angle around observed photon direction (radians). |
Computes
\[ S_{\rm p}(\theta, \phi | E, t) \, Aeff(\theta, \phi) \, Edisp(\theta, \phi) \]
As the coordinates \((\theta, \phi)\) are given in the reference frame of the observed photon direction, some coordinate transformations have to be performed.
First, \((\theta, \phi)\) are transformed into the celestial reference frame using the rotation matrix.
Then, the offset angle of the true photon direction is computed in the camera system (so far we do not compute the azimuth angle as we assume an azimuthally symmetric response).
Optimize computation of sky direction in native coordinates
Implement azimuth angle computation of true photon in camera
Replace (theta,phi) by (delta,alpha)
Implements GFunction.
Definition at line 1401 of file GCTAResponse_helpers.cpp.
References gammalib::acos(), GCTAResponseIrf::aeff(), GSkyDir::celvector(), cos(), GPhoton::dir(), GCTAResponseIrf::edisp(), GPhoton::energy(), GModelSpatial::eval(), gammalib::is_infinite(), gammalib::is_notanumber(), m_azimuth, m_cos_ph, m_cos_theta, m_model, m_native, m_obsEng, m_photon, m_rot, m_rsp, m_sin_ph, m_sin_theta, m_srcEng, m_srcLogEng, m_srcTime, m_zenith, sin(), GPhoton::time(), and GCTAResponseIrf::use_edisp().
|
protected |
|
protected |
Cosine term in angular distance equation.
Definition at line 896 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Cosine of offset angle.
Definition at line 894 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
Pre-allocate memory for native coordinates.
Definition at line 897 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Measured event energy.
Definition at line 892 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Pre-allocate memory for a photon object.
Definition at line 898 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
|
protected |
Sine term in angular distance equation.
Definition at line 895 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Sine of offset angle.
Definition at line 893 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
True photon log energy.
Definition at line 891 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
True photon arrival time.
Definition at line 890 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |