27#ifndef GCTARESPONSE_HELPERS_HPP
28#define GCTARESPONSE_HELPERS_HPP
60 const double& domega);
88 const double& azimuth) :
100 double eval(
const double& delta);
130 const GTime& srcTime,
132 const GTime& obsTime) :
139 double eval(
const double& etrue);
182 const double& zenith,
183 const double& azimuth,
185 const GTime& srcTime,
188 const double& lambda,
189 const double& omega0,
190 const double& delta_max,
209 double eval(
const double& rho);
252 const double& zenith,
253 const double& azimuth,
257 const double& lambda,
258 const double& omega0,
260 const double& cos_psf,
261 const double& sin_psf,
262 const double& cos_ph,
263 const double& sin_ph) :
277 double eval(
const double& omega);
332 const GTime& srcTime,
334 const GTime& obsTime,
336 const double& radius,
337 const double& omega0,
354 double eval(
const double& rho);
400 const GTime& srcTime,
402 const GTime& obsTime,
414 double eval(
const double& omega);
461 const double& semimajor,
462 const double& semiminor,
463 const double& posangle,
464 const double& zenith,
465 const double& azimuth,
467 const GTime& srcTime,
469 const double& rho_obs,
470 const double& posangle_obs,
471 const double& rho_pnt,
472 const double& omega_pnt,
473 const double& delta_max,
496 double eval(
const double& rho);
545 const double& zenith,
546 const double& azimuth,
548 const GTime& srcTime,
550 const double& posangle_obs,
551 const double& omega_pnt,
553 const double& cos_psf,
554 const double& sin_psf,
555 const double& cos_ph,
556 const double& sin_ph) :
571 double eval(
const double& omega);
627 const double& semimajor,
628 const double& semiminor,
629 const double& posangle,
631 const GTime& srcTime,
633 const GTime& obsTime,
634 const double& rho_roi,
635 const double& posangle_roi,
636 const double& radius_roi,
656 double eval(
const double& rho);
708 const GTime& srcTime,
710 const GTime& obsTime,
712 const double& sin_rho,
713 const double& cos_rho,
714 const double& posangle_roi) :
727 double eval(
const double& omega);
781 const double& zenith,
782 const double& azimuth,
784 const GTime& srcTime,
785 const double& srcLogEng,
790 const double& resolution) :
807 double eval(
const double& theta);
857 const double& zenith,
858 const double& azimuth,
860 const GTime& srcTime,
861 const double& srcLogEng,
863 const double& sin_theta,
864 const double& cos_theta,
865 const double& sin_ph,
866 const double& cos_ph) :
882 double eval(
const double& phi);
939 const GTime& srcTime,
941 const GTime& obsTime,
952 double eval(
const double& theta);
993 const GTime& srcTime,
995 const GTime& obsTime,
997 const double& sin_theta) :
1009 double eval(
const double& phi);
1058 const GTime& srcTime,
1059 const double& rho_obs,
1060 const double& delta_max,
1073 double eval(
const double& rho);
1112 const GTime& srcTime,
1113 const double& cos_psf,
1114 const double& sin_psf) :
1122 double eval(
const double& omega);
1145 const GTime& srcTime,
1146 const double& delta_mod,
1147 const double& theta_max,
1160 double eval(
const double& delta);
1185 const GTime& srcTime,
1186 const double& sin_fact,
1187 const double& cos_fact) :
1193 double eval(
const double& phi);
1235 const double& semimajor,
1236 const double& semiminor,
1237 const double& posangle,
1240 const GTime& srcTime,
1241 const double& rho_obs,
1242 const double& posangle_obs,
1243 const double& delta_max,
1260 double eval(
const double& rho);
1304 const GTime& srcTime,
1305 const double& posangle_obs,
1307 const double& cos_psf,
1308 const double& sin_psf) :
1318 double eval(
const double& omega);
1344 const GTime& srcTime,
1345 const int& min_iter,
1346 const int& max_iter,
1347 const double& resolution) :
1357 m_psf_max(rsp->psf()(srcDir, 0.0, srcEng)) { }
1358 double eval(
const double& delta);
1383 const GTime& srcTime,
1384 const double& sin_delta,
1385 const double& cos_delta) :
1392 double eval(
const double& phi);
CTA observation class interface definition.
CTA cube-style response function class definition.
CTA instrument response function class definition.
std::vector< std::pair< double, double > > cta_omega_intervals
Energy container class definition.
Energy value class definition.
Single parameter function abstract base class definition.
Single parameter functions abstract base class definition.
Generic matrix class definition.
Model parameter class interface definition.
Sky model class interface definition.
Abstract elliptical spatial model base class interface definition.
Abstract radial spatial model base class interface definition.
Abstract spatial model base class interface definition.
Time class interface definition.
GVector cos(const GVector &vector)
Computes cosine of vector elements.
double min(const GVector &vector)
Computes minimum vector element.
GVector sin(const GVector &vector)
Computes sine of vector elements.
double max(const GVector &vector)
Computes maximum vector element.
CTA cube-style response function class.
CTA instrument response function class.
Class that handles energies in a unit independent way.
Single parameter function abstract base class.
Generic matrix class definition.
Abstract elliptical spatial model base class.
Abstract radial spatial model base class.
Abstract spatial model base class.
Abstract observation base class.
Class that handles photons.
Kernel for IRF azimuth angle integration of the diffuse source model.
double m_azimuth
Azimuth angle.
GTime m_srcTime
True photon arrival time.
double m_zenith
Zenith angle.
GVector m_native
Pre-allocate memory for native coordinates.
GPhoton m_photon
Pre-allocate memory for a photon object.
double m_cos_ph
Cosine term in angular distance equation.
double m_sin_theta
Sine of offset angle.
double m_srcLogEng
True photon log energy.
GEnergy m_obsEng
Measured event energy.
const GModelSpatial * m_model
Spatial model.
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)
GEnergy m_srcEng
True photon energy.
const GMatrix * m_rot
Rotation matrix.
double m_sin_ph
Sine term in angular distance equation.
double m_cos_theta
Cosine of offset angle.
double eval(const double &phi)
Kernel for IRF azimuth angle integration of the diffuse source model.
const GCTAResponseIrf * m_rsp
CTA response.
Kernel for IRF offest angle integration of the diffuse source model.
const GCTAResponseIrf * m_rsp
CTA response.
double m_azimuth
Pointing azimuth angle.
double m_sin_eta
Sine of angular distance between.
double m_srcLogEng
True photon log energy.
double m_theta
Photon offset angle.
double m_phi
Photon azimuth angle.
GEnergy m_srcEng
True photon energy.
const GModelSpatial * m_model
Spatial model.
const GMatrix * m_rot
Rotation matrix.
double m_zenith
Pointing zenith angle.
double eval(const double &theta)
Kernel for IRF offest angle integration of the diffuse source model.
GTime m_srcTime
True photon arrival time.
double m_cos_eta
Cosine of angular distance between.
cta_irf_diffuse_kern_theta(const GCTAResponseIrf *rsp, const GModelSpatial *model, const GMatrix *rot, const double &theta, const double &phi, const double &zenith, const double &azimuth, const GEnergy &srcEng, const GTime &srcTime, const double &srcLogEng, const GEnergy &obsEng, const double &eta, const int &min_iter, const int &max_iter, const double &resolution)
GEnergy m_obsEng
Measured event energy.
Kernel for ellitpical model azimuth angle IRF integration.
double m_sin_psf
Sine term for PSF offset angle computation.
GEnergy m_srcEng
True photon energy.
cta_irf_elliptical_kern_omega(const GCTAResponseIrf *rsp, const GModelSpatialElliptical *model, const double &zenith, const double &azimuth, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const double &posangle_obs, const double &omega_pnt, const double &rho, const double &cos_psf, const double &sin_psf, const double &cos_ph, const double &sin_ph)
double m_omega_pnt
Azimuth of pointing in model system.
const GCTAResponseIrf * m_rsp
CTA response.
double m_zenith
Zenith angle.
double m_rho
Model zenith angle.
double m_cos_psf
Cosine term for PSF offset angle computation.
const GModelSpatialElliptical * m_model
Spatial model.
GEnergy m_obsEng
Measured event energy.
GTime m_srcTime
True photon time.
double m_posangle_obs
Measured photon position angle from model centre.
double m_azimuth
Azimuth angle.
double m_sin_ph
Sine term for photon offset angle computation.
double eval(const double &omega)
Kernel for elliptical model integration over model's azimuth angle.
double m_cos_ph
Cosine term for photon offset angle computation.
Kernel for elliptical model zenith angle integration of IRF.
double m_rho_obs
Distance of model centre from measured photon.
double m_posangle_obs
Photon position angle measured from model centre.
double m_semiminor
Ellipse boundary semiminor axis.
const GCTAResponseIrf * m_rsp
CTA response.
double m_sin_rho_pnt
Sine of m_rho_pnt.
GEnergy m_obsEng
Measured event energy.
GEnergy m_srcEng
True photon energy.
GTime m_srcTime
True photon time.
double m_sin_rho_obs
Sine of m_rho_obs.
double m_cos_delta_max
Cosine of maximum PSF radius.
double m_semimajor
Ellipse boundary semimajor axis.
double m_posangle
Ellipse boundary position angle.
double m_zenith
Zenith angle.
double m_omega_pnt
Azimuth of pointing in model system.
int m_iter
Integration iterations.
const GModelSpatialElliptical * m_model
Elliptical model.
double eval(const double &rho)
Kernel for elliptical model integration over model's zenith angle.
cta_irf_elliptical_kern_rho(const GCTAResponseIrf *rsp, const GModelSpatialElliptical *model, const double &semimajor, const double &semiminor, const double &posangle, const double &zenith, const double &azimuth, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const double &rho_obs, const double &posangle_obs, const double &rho_pnt, const double &omega_pnt, const double &delta_max, const int &iter)
double m_azimuth
Azimuth angle.
double m_cos_rho_pnt
Cosine of m_rho_pnt.
double m_rho_pnt
Distance of model centre from pointing.
double m_delta_max
Maximum PSF radius.
double m_cos_rho_obs
Cosine of m_rho_obs.
Kernel for radial model azimuth angle IRF integration.
double m_sin_ph
Sine term for photon offset angle computation.
GEnergy m_srcEng
True photon energy.
double m_sin_psf
Sine term for PSF offset angle computation.
double m_cos_psf
Cosine term for PSF offset angle computation.
const GCTAResponseIrf * m_rsp
CTA response.
double m_zeta
Distance model centre - measured photon.
double m_lambda
Distance model centre - pointing.
GEnergy m_obsEng
Measured event energy.
double m_cos_ph
Cosine term for photon offset angle computation.
double eval(const double &omega)
Kernel for radial model azimuth angle IRF integration.
double m_azimuth
Azimuth angle.
double m_omega0
Azimuth of pointing in model system.
double m_zenith
Zenith angle.
cta_irf_radial_kern_omega(const GCTAResponseIrf *rsp, const double &zenith, const double &azimuth, const GEnergy &srcEng, const GEnergy &obsEng, const double &zeta, const double &lambda, const double &omega0, const double &rho, const double &cos_psf, const double &sin_psf, const double &cos_ph, const double &sin_ph)
Kernel for radial model zenith angle integration of IRF.
cta_irf_radial_kern_rho(const GCTAResponseIrf *rsp, const GModelSpatialRadial *model, const double &zenith, const double &azimuth, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const double &zeta, const double &lambda, const double &omega0, const double &delta_max, const int &iter)
double m_cos_zeta
Cosine of zeta.
const GCTAResponseIrf * m_rsp
CTA response.
double m_sin_lambda
Sine of lambda.
double m_cos_lambda
Cosine of lambda.
GEnergy m_obsEng
Measured event energy.
double m_delta_max
Maximum PSF radius.
GTime m_srcTime
True photon time.
double m_zeta
Distance model centre - measured photon.
double m_zenith
Zenith angle.
int m_iter
Integration iterations.
GEnergy m_srcEng
True photon energy.
double m_lambda
Distance model centre - pointing.
double eval(const double &rho)
Kernel for radial model zenith angle integration of Irf.
const GModelSpatialRadial * m_model
Radial spatial model.
double m_azimuth
Azimuth angle.
double m_cos_delta_max
Cosine of maximum PSF radius.
double m_omega0
Azimuth of pointing in model system.
double m_sin_zeta
Sine of zeta.
Integration kernel for npsf() method.
double m_cospsf
Cosine of PSF-ROI centre distance.
double m_theta
Offset angle of source in camera system.
double m_roi
ROI radius in radians.
double m_logE
Log10 of true photon energy (E/TeV).
double m_sinpsf
Sine of PSF-ROI centre distance.
double m_cosroi
Cosine of ROI radius.
double m_zenith
Zenith angle of source in Earth system.
double m_azimuth
Azimuth angle of source in Earth system.
const GCTAResponseIrf * m_rsp
CTA response function.
double m_phi
Azimuth angle of source in camera system.
double eval(const double &delta)
Integration kernel for npsf() method.
double m_psf
PSF-ROI centre distance in radians.
cta_npsf_kern_rad_azsym(const GCTAResponseIrf *rsp, const double &roi, const double &psf, const double &logE, const double &theta, const double &phi, const double &zenith, const double &azimuth)
Kernel for Nroi azimuth angle integration of diffuse model.
double m_theta
Offset angle (radians)
const GCTAResponseIrf * m_rsp
CTA response.
const GModelSpatial * m_model
Spatial model.
cta_nroi_diffuse_kern_phi(const GCTAResponseIrf *rsp, const GCTAObservation *obs, const GModelSpatial *model, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime, const double &theta, const double &sin_theta)
const GMatrix * m_rot
Rotation matrix.
const GCTAObservation * m_obs
CTA observation.
double eval(const double &phi)
Kernel for Nroi azimuth angle integration of diffuse model.
GTime m_obsTime
Observed photon arrival time.
double m_sin_theta
Sine of offset angle.
GEnergy m_obsEng
Observed photon energy.
GTime m_srcTime
True photon arrival time.
GEnergy m_srcEng
True photon energy.
double m_cos_theta
Cosine of offset angle.
Kernel for Nroi offest angle integration of diffuse model.
GEnergy m_srcEng
True photon energy.
double eval(const double &theta)
Kernel for Nroi offest angle integration of diffuse model.
const GMatrix * m_rot
Rotation matrix.
const GModelSpatial * m_model
Spatial model.
const GCTAObservation * m_obs
CTA observation.
GTime m_srcTime
True photon arrival time.
const GCTAResponseIrf * m_rsp
CTA response.
GEnergy m_obsEng
Observed photon energy.
GTime m_obsTime
Observed photon arrival time.
int m_iter
Integration iterations.
cta_nroi_diffuse_kern_theta(const GCTAResponseIrf *rsp, const GCTAObservation *obs, const GModelSpatial *model, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime, const int &iter)
Kernel for azimuth angle Nroi integration of elliptical model.
const GMatrix * m_rot
Rotation matrix.
GEnergy m_srcEng
True photon energy.
GEnergy m_obsEng
Observed photon energy.
double m_cos_rho
Cosine of offset angle.
const GCTAObservation * m_obs
CTA observation.
const GCTAResponseIrf * m_rsp
CTA response.
GTime m_obsTime
Observed photon arrival time.
double eval(const double &omega)
Kernel for azimuth angle Nroi integration of elliptical model.
GTime m_srcTime
True photon arrival time.
double m_posangle_roi
Position angle of ROI.
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 m_sin_rho
Sine of offset angle.
const GModelSpatialElliptical * m_model
Elliptical model.
Kernel for zenith angle Nroi integration of elliptical model.
const GModelSpatialElliptical * m_model
Elliptical model.
const GMatrix * m_rot
Rotation matrix.
GTime m_srcTime
True photon arrival time.
cta_nroi_elliptical_kern_rho(const GCTAResponseIrf *rsp, const GCTAObservation *obs, const GModelSpatialElliptical *model, const GMatrix *rot, const double &semimajor, const double &semiminor, const double &posangle, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime, const double &rho_roi, const double &posangle_roi, const double &radius_roi, const int &iter)
double m_posangle
Ellipse boundary position angle.
GTime m_obsTime
Observed photon arrival time.
int m_iter
Integration iterations.
const GCTAResponseIrf * m_rsp
CTA response.
double m_cos_radius_roi
Cosine of m_radius_roi.
GEnergy m_srcEng
True photon energy.
double m_rho_roi
Distance between model and ROI centre.
double m_semiminor
Ellipse boundary semiminor axis.
double m_radius_roi
ROI+PSF radius.
double m_sin_rho_roi
Sine of m_rho_roi.
double m_posangle_roi
Position angle of ROI.
double m_semimajor
Ellipse boundary semimajor axis.
const GCTAObservation * m_obs
CTA observation.
double eval(const double &rho)
Kernel for zenith angle Nroi integration of elliptical model.
GEnergy m_obsEng
Observed photon energy.
double m_cos_rho_roi
Cosine of m_rho_roi.
const GModelSky * m_model
Sky model.
GTime m_obsTime
Measured arrival time.
const GCTAResponseIrf * m_rsp
CTA response function.
GEnergy m_obsEng
Measured energy.
GTime m_srcTime
True arrival time.
const GObservation * m_obs
Observation.
double eval(const double &etrue)
Integration kernel for GCTAResponseIrf::nroi method.
cta_nroi_kern(const GCTAResponseIrf *rsp, const GObservation *obs, const GModelSky *model, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime)
GEnergy m_srcEng
True photon energy.
GTime m_srcTime
True photon arrival time.
GEnergy m_obsEng
Observed photon energy.
const GCTAResponseIrf * m_rsp
CTA response.
const GCTAObservation * m_obs
CTA observation.
const GMatrix * m_rot
Rotation matrix.
cta_nroi_radial_kern_omega(const GCTAResponseIrf *rsp, const GCTAObservation *obs, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime, double sin_rho, double cos_rho)
GTime m_obsTime
Observed photon arrival time.
double m_cos_rho
Cosine of offset angle.
double eval(const double &omega)
Kernel for azimuth angle Nroi integration of radial model.
double m_sin_rho
Sine of offset angle.
Kernel for zenith angle Nroi integration of radial model.
const GModelSpatialRadial * m_model
Radial spatial model.
double m_dist
Distance model-ROI centre.
GTime m_obsTime
Observed photon arrival time.
GEnergy m_obsEng
Observed photon energy.
cta_nroi_radial_kern_rho(const GCTAResponseIrf *rsp, const GCTAObservation *obs, const GModelSpatialRadial *model, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const GEnergy &obsEng, const GTime &obsTime, const double &dist, const double &radius, const double &omega0, const int &iter)
const GCTAObservation * m_obs
CTA observation.
int m_iter
Integration iterations.
const GMatrix * m_rot
Rotation matrix.
GTime m_srcTime
True photon arrival time.
double m_cos_dist
Cosine of distance model-ROI centre.
double m_radius
ROI+PSF radius.
double eval(const double &rho)
Kernel for zenith angle Nroi integration or radial model.
double m_cos_radius
Cosine of ROI+PSF radius.
double m_sin_dist
Sine of distance model-ROI centre.
GEnergy m_srcEng
True photon energy.
const GCTAResponseIrf * m_rsp
CTA response.
double m_omega0
Position angle of ROI.
Kernel for Psf delta angle integration used for stacked analysis.
int m_max_iter
Maximum number of Romberg iterations.
const GMatrix * m_rot
Rotation matrix.
cta_psf_diffuse_kern_delta(const GCTAResponseCube *rsp, const GModelSpatial *model, const GMatrix *rot, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const int &min_iter, const int &max_iter, const double &resolution)
GSkyDir m_srcDir
True photon arrival direction.
const GCTAResponseCube * m_rsp
Response cube.
double m_psf_max
Maximum PSF value.
double m_resolution
Spatial map resolution.
GTime m_srcTime
True photon arrival time.
int m_min_iter
Minimum number of Romberg iterations.
const GModelSpatial * m_model
Spatial model.
GEnergy m_srcEng
True photon energy.
double eval(const double &delta)
Kernel for PSF integration of spatial model.
Kernel for Psf phi angle integration used for stacked analysis.
cta_psf_diffuse_kern_phi(const GModelSpatial *model, const GMatrix *rot, const GEnergy &srcEng, const GTime &srcTime, const double &sin_delta, const double &cos_delta)
const GMatrix * m_rot
Rotation matrix.
double m_cos_delta
cos(delta)
double eval(const double &phi)
Kernel for map integration of spatial model.
double m_sin_delta
sin(delta)
GTime m_srcTime
True photon arrival time.
const GModelSpatial * m_model
Spatial model.
GEnergy m_srcEng
True photon energy.
double eval(const double &omega)
Kernel for elliptical model integration over azimuth angle.
GSkyDir m_srcDir
True photon sky direction.
cta_psf_elliptical_kern_omega(const GCTAResponseCube *rsp, const GModelSpatialElliptical *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &posangle_obs, const double &rho, const double &cos_psf, const double &sin_psf)
const GModelSpatialElliptical * m_model
Elliptical model.
GTime m_srcTime
True photon time.
double m_rho
Model zenith angle.
double m_posangle_obs
Measured photon position angle from model centre.
GEnergy m_srcEng
True photon energy.
double m_sin_psf
Sine term for PSF offset angle computation.
const GCTAResponseCube * m_rsp
CTA response.
double m_cos_psf
Cosine term for PSF offset angle computation.
GEnergy m_srcEng
True photon energy.
double m_rho_obs
Distance of model centre from measured photon.
double eval(const double &rho)
Kernel for elliptical model integration over zenith angle.
double m_cos_delta_max
Cosine of maximum PSF radius.
double m_semimajor
Ellipse boundary semimajor axis.
GTime m_srcTime
True photon time.
GSkyDir m_srcDir
True photon arrival direction.
double m_posangle
Ellipse boundary position angle.
double m_semiminor
Ellipse boundary semiminor axis.
double m_delta_max
Maximum PSF radius.
double m_sin_rho_obs
Sine of m_rho_obs.
const GCTAResponseCube * m_rsp
CTA response.
int m_iter
Integration iterations.
cta_psf_elliptical_kern_rho(const GCTAResponseCube *rsp, const GModelSpatialElliptical *model, const double &semimajor, const double &semiminor, const double &posangle, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &rho_obs, const double &posangle_obs, const double &delta_max, const int &iter)
const GModelSpatialElliptical * m_model
Elliptical model.
double m_cos_rho_obs
Cosine of m_rho_obs.
double m_posangle_obs
Photon position angle measured from model centre.
Kernel for Psf delta angle integration used for stacked analysis.
double m_cos_theta_max
Cosine of m_theta_max.
double eval(const double &delta)
Kernel for PSF integration of radial model.
const GCTAResponseCube * m_rsp
Response cube.
GSkyDir m_srcDir
True photon arrival direction.
GTime m_srcTime
True photon arrival time.
GEnergy m_srcEng
True photon energy.
double m_cos_delta_mod
Cosine of m_delta_mod.
cta_psf_radial_kern_delta(const GCTAResponseCube *rsp, const GModelSpatialRadial *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &delta_mod, const double &theta_max, const int &iter)
double m_delta_mod
Distance of model from Psf.
double m_sin_delta_mod
Sine of m_delta_mod.
int m_iter
Integration iterations.
double m_theta_max
Maximum model radius.
const GModelSpatialRadial * m_model
Radial model.
Kernel for radial model azimuth angle integration.
const GModelSpatialRadial * m_model
Radial model.
GEnergy m_srcEng
True photon energy.
const GCTAResponseCube * m_rsp
CTA response.
double m_sin_psf
Sine term for PSF offset angle computation.
double m_cos_psf
Cosine term for PSF offset angle computation.
GSkyDir m_srcDir
True photon sky direction.
GTime m_srcTime
True photon time.
cta_psf_radial_kern_omega(const GCTAResponseCube *rsp, const GModelSpatialRadial *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &cos_psf, const double &sin_psf)
double eval(const double &omega)
Kernel for radial model integration over azimuth angle.
Kernel for Psf phi angle integration used for stacked analysis.
double eval(const double &phi)
Kernel for azimuthal radial model integration.
GEnergy m_srcEng
True photon energy.
cta_psf_radial_kern_phi(const GModelSpatialRadial *model, const GEnergy &srcEng, const GTime &srcTime, const double &sin_fact, const double &cos_fact)
GTime m_srcTime
True photon arrival time.
const GModelSpatialRadial * m_model
Radial model.
double m_sin_fact
sin(delta)*sin(delta_mod)
double m_cos_fact
cos(delta)*cos(delta_mod)
const GCTAResponseCube * m_rsp
CTA response.
GEnergy m_srcEng
True photon energy.
double eval(const double &rho)
Kernel for radial model integration over zenith angle.
int m_iter
Integration iterations.
double m_cos_delta_max
Cosine of maximum PSF radius.
GTime m_srcTime
True photon time.
double m_rho_obs
Distance of model centre from measured photon.
cta_psf_radial_kern_rho(const GCTAResponseCube *rsp, const GModelSpatialRadial *model, const GSkyDir &srcDir, const GEnergy &srcEng, const GTime &srcTime, const double &rho_obs, const double &delta_max, const int &iter)
GSkyDir m_srcDir
True photon arrival direction.
const GModelSpatialRadial * m_model
Radial model.
double m_cos_rho_obs
Cosine of m_rho_obs.
double m_delta_max
Maximum PSF radius.
double m_sin_rho_obs
Sine of m_rho_obs.
double resolution(const GModelSpatial *model)
Determine resolution of spatial model.
cta_omega_intervals limit_omega(const double &min, const double &max, const double &domega)
Limit omega interval.