GammaLib
2.1.0.dev
|
Kernel for azimuth angle Nroi integration of elliptical model. More...
#include <GCTAResponse_helpers.hpp>
Public Member Functions | |
cta_nroi_elliptical_kern_omega (const GCTAResponseIrf *rsp, const GCTAObservation *obs, const GModelSpatialElliptical *model, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime, const double &rho, const double &sin_rho, const double &cos_rho, const double &posangle_roi) | |
double | eval (const double &omega) |
Kernel for azimuth angle Nroi integration of elliptical 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 GCTAObservation * | m_obs |
CTA observation. More... | |
const GModelSpatialElliptical * | m_model |
Elliptical model. More... | |
const GMatrix * | m_rot |
Rotation matrix. More... | |
GEnergy | m_srcEng |
True photon energy. More... | |
GTime | m_srcTime |
True photon arrival time. More... | |
GEnergy | m_obsEng |
Observed photon energy. More... | |
GTime | m_obsTime |
Observed photon arrival time. More... | |
double | m_rho |
double | m_sin_rho |
Sine of offset angle. More... | |
double | m_cos_rho |
Cosine of offset angle. More... | |
double | m_posangle_roi |
Position angle of ROI. 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 azimuth angle Nroi integration of elliptical model.
This class implements the computation of
\[ S_{\rm p}(\rho,\omega | E, t) \, N_{\rm pred}(\rho,\omega) \]
where
Definition at line 701 of file GCTAResponse_helpers.hpp.
|
inline |
Definition at line 703 of file GCTAResponse_helpers.hpp.
|
virtual |
Kernel for azimuth angle Nroi integration of elliptical model.
[in] | omega | Azimuth angle (radians). |
Computes
\[ S_{\rm p}(\omega | \rho, E, t) \, N_{\rm pred}(\omega | \rho) \]
where \(\omega\) is the azimuth angle with respect to the model centre, counted counterclockwise from the vector connecting the model centre to the centre of the Region of Interest (ROI), and \(\rho\) is the radial distance from the model centre.
Npred computation goes over sky coordinates. This can maybe be optimized to reduce the number of coordinate transformations.
Check whether the Npred omega argument is the right one.
Implements GFunction.
Definition at line 1186 of file GCTAResponse_helpers.cpp.
References GSkyDir::celvector(), cos(), gammalib::deg2rad, GModelSpatialElliptical::eval(), gammalib::is_infinite(), gammalib::is_notanumber(), m_cos_rho, m_model, m_obs, m_obsEng, m_obsTime, m_posangle_roi, m_rho, m_rot, m_rsp, m_sin_rho, m_srcEng, m_srcTime, GCTAResponseIrf::nirf(), GModelSpatialElliptical::posangle(), gammalib::rad2deg, GModelSpatialElliptical::semimajor(), GModelSpatialElliptical::semiminor(), sin(), and sqrt().
|
protected |
Cosine of offset angle.
Definition at line 739 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
|
protected |
Observed photon energy.
Definition at line 735 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Observed photon arrival time.
Definition at line 736 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Position angle of ROI.
Definition at line 740 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
Definition at line 737 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
|
protected |
Sine of offset angle.
Definition at line 738 of file GCTAResponse_helpers.hpp.
Referenced by eval().
|
protected |
|
protected |
True photon arrival time.
Definition at line 734 of file GCTAResponse_helpers.hpp.
Referenced by eval().