From 5ec4a4ec39d488b084d3b376c53f350f00366b0d Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 2 Apr 2015 15:55:45 +0200 Subject: [PATCH] Add missing headers --- inst/cta/include/GCTAResponse.hpp | 1 + inst/cta/include/GCTAResponseIrf.hpp | 1 + inst/cta/src/GCTAResponseCube.cpp | 1 + inst/cta/src/GCTAResponseIrf.cpp | 22 +++++++++++++++++++--- inst/lat/include/GLATResponse.hpp | 3 +++ inst/lat/src/GLATResponse.cpp | 1 + inst/mwl/src/GMWLResponse.cpp | 1 + 7 files changed, 27 insertions(+), 3 deletions(-) diff --git a/inst/cta/include/GCTAResponse.hpp b/inst/cta/include/GCTAResponse.hpp index b6bf4cb..a92fd20 100644 --- a/inst/cta/include/GCTAResponse.hpp +++ b/inst/cta/include/GCTAResponse.hpp @@ -37,6 +37,7 @@ class GPhoton; class GEvent; class GObservation; +class GXmlElement; class GCTAObservation; class GCTAPointing; class GCTARoi; diff --git a/inst/cta/include/GCTAResponseIrf.hpp b/inst/cta/include/GCTAResponseIrf.hpp index 8b9190a..a12a093 100644 --- a/inst/cta/include/GCTAResponseIrf.hpp +++ b/inst/cta/include/GCTAResponseIrf.hpp @@ -52,6 +52,7 @@ class GCTAAeff; class GCTAPsf; class GCTAEdisp; class GCTABackground; +class GRan; /***********************************************************************//** diff --git a/inst/cta/src/GCTAResponseCube.cpp b/inst/cta/src/GCTAResponseCube.cpp index 727f175..2767028 100644 --- a/inst/cta/src/GCTAResponseCube.cpp +++ b/inst/cta/src/GCTAResponseCube.cpp @@ -42,6 +42,7 @@ #include "GModelSpatialElliptical.hpp" #include "GModelSpatialDiffuse.hpp" #include "GPhoton.hpp" +#include "GSource.hpp" #include "GEvent.hpp" #include "GSkyDir.hpp" #include "GEnergy.hpp" diff --git a/inst/cta/src/GCTAResponseIrf.cpp b/inst/cta/src/GCTAResponseIrf.cpp index b48d2e5..7515794 100644 --- a/inst/cta/src/GCTAResponseIrf.cpp +++ b/inst/cta/src/GCTAResponseIrf.cpp @@ -37,6 +37,7 @@ #include "GIntegral.hpp" #include "GCaldb.hpp" #include "GSource.hpp" +#include "GRan.hpp" #include "GModelSky.hpp" #include "GModelSpatialPointSource.hpp" #include "GModelSpatialRadial.hpp" @@ -1168,10 +1169,25 @@ double GCTAResponseIrf::nroi_diffuse(const GModelSky& model, } +/***********************************************************************//** + * @brief Return spatial integral of Instrument Response Function + * + * @param[in] photon Photon. + * @param[in] obsEng Observed event energy. + * @param[in] obsTime Observed event time. + * @param[in] obs Observation. + * + * Computes the integral of the instrument response function over the Region + * of Interest + * + * \f[ + * R(E',t'|p,E,t) = \int_{\rm ROI} R(p',E',t'|p,E,t) dp' + * \f] + ***************************************************************************/ double GCTAResponseIrf::nroi(const GPhoton& photon, - const GEnergy& obsEng, - const GTime& obsTime, - const GObservation& obs) const + const GEnergy& obsEng, + const GTime& obsTime, + const GObservation& obs) const { // Retrieve CTA observation, ROI and pointing const GCTAObservation& cta = retrieve_obs(G_NPRED, obs); diff --git a/inst/lat/include/GLATResponse.hpp b/inst/lat/include/GLATResponse.hpp index 4a789d9..f6717d3 100644 --- a/inst/lat/include/GLATResponse.hpp +++ b/inst/lat/include/GLATResponse.hpp @@ -41,6 +41,9 @@ #include "GObservation.hpp" #include "GResponse.hpp" +/* __ Forward declarations _______________________________________________ */ +class GSource; + /***********************************************************************//** * @class GLATResponse diff --git a/inst/lat/src/GLATResponse.cpp b/inst/lat/src/GLATResponse.cpp index 0cc8d6d..5cf0428 100644 --- a/inst/lat/src/GLATResponse.cpp +++ b/inst/lat/src/GLATResponse.cpp @@ -35,6 +35,7 @@ #include "GFits.hpp" #include "GTools.hpp" #include "GCaldb.hpp" +#include "GSource.hpp" #include "GModelSpatialPointSource.hpp" #include "GLATInstDir.hpp" #include "GLATResponse.hpp" diff --git a/inst/mwl/src/GMWLResponse.cpp b/inst/mwl/src/GMWLResponse.cpp index de121f1..397d3d2 100644 --- a/inst/mwl/src/GMWLResponse.cpp +++ b/inst/mwl/src/GMWLResponse.cpp @@ -29,6 +29,7 @@ #include #endif #include "GTools.hpp" +#include "GException.hpp" #include "GMWLResponse.hpp" /* __ Method name definitions ____________________________________________ */ -- libgit2 0.21.4